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
145893de88
commit
4e57449db9
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -15,7 +15,8 @@ pipeline {
|
||||||
stage('pull request') {
|
stage('pull request') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
if(env.CHANGE_ID) {
|
if(env.BRANCH_NAME != 'main') {
|
||||||
|
sh "echo $env.BRANCH_NAME"
|
||||||
sh "echo 'pull request'"
|
sh "echo 'pull request'"
|
||||||
} else if (env.BRANCH_NAME == 'main') {
|
} else if (env.BRANCH_NAME == 'main') {
|
||||||
sh "echo 'main branch'"
|
sh "echo 'main branch'"
|
||||||
|
|
Loading…
Reference in a new issue