Skip to content

Commit

Permalink
Added branch support for basic spring boot pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sabre1041 committed Apr 22, 2019
1 parent 49e909a commit 71781b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion basic-spring-boot/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pipeline {
steps {
// Turn off Git's SSL cert check, uncomment if needed
// sh 'git config --global http.sslVerify false'
git url: "${APPLICATION_SOURCE_REPO}"
git url: "${APPLICATION_SOURCE_REPO}", branch: "${APPLICATION_SOURCE_REF}"
}
}

Expand Down
2 changes: 1 addition & 1 deletion basic-spring-boot/Jenkinsfile.hygieia
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pipeline {
steps {
// Turn off Git's SSL cert check, uncomment if needed
// sh 'git config --global http.sslVerify false'
git url: "${APPLICATION_SOURCE_REPO}"
git url: "${APPLICATION_SOURCE_REPO}", branch: "${APPLICATION_SOURCE_REF}"
script {
env.commit = sh(script:"git rev-parse HEAD", returnStdout: true).trim()
env.version = "${env.commit}-${BUILD_NUMBER}"
Expand Down

0 comments on commit 71781b7

Please sign in to comment.