mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
JenkinsFile docker configuration
This commit is contained in:
parent
e79120b1ed
commit
3d28f34492
1 changed files with 4 additions and 3 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -15,13 +15,14 @@ pipeline {
|
||||||
stage('pull request') {
|
stage('pull request') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
if (env.BRANCH_NAME != 'main' && env.CHANGE_ID){
|
if (BRANCH_NAME != 'main' && env.CHANGE_ID){
|
||||||
sh "echo 'ndsakmmkdsa'"
|
sh "echo 'ndsakmmkdsa'"
|
||||||
sh "echo 'hfiejrfrei'"
|
sh "echo 'hfiejrfrei'"
|
||||||
} else if (env.BRANCH_NAME == 'main') {
|
} else if (BRANCH_NAME == 'main') {
|
||||||
sh "echo main"
|
sh "echo main"
|
||||||
} else {
|
} else {
|
||||||
sh "echo $env.BRANCH_NAM"
|
sh "echo $BRANCH_NAME"
|
||||||
|
sh "echo $env.BRANCH_NAME"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue