Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@


pipeline {

agent {

node {

label 'Centos_nodejs'

}

}

stages {

stage('check out code') {

steps {

git(url: 'https://github.com/ronenl4940/spring-boot-examples.git', branch: 'ronen_oren_sol', changelog: true, poll: true)

}

}

stage('maven compile') {

steps {

sh '''cd spring-boot-package-war/

mvn compile'''

}

}

stage('test') {

steps {

sh '''cd spring-boot-package-war/

mvn test'''

}

}

stage('incremant') {

steps {

sh '''cd spring-boot-package-war/

mvn build-helper:parse-version versions:set -DnewVersion=0.0.2.$BUILD_ID-SNAPSHOT versions:commit'''

}

}

stage('packege [mvn clean packege]') {

steps {

sh '''cd spring-boot-package-war/

mvn clean package'''

}

}

}

}

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class HelloWorldController {

@RequestMapping("/hello")
public String index() {
return "Hello World xx";
return "Hello World";
}
}
}