mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
deploy stage modif
This commit is contained in:
parent
4548820897
commit
e852f854c6
1 changed files with 9 additions and 6 deletions
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -18,12 +18,15 @@ pipeline {
|
||||||
sh './mvnw package'
|
sh './mvnw package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Deploy') {
|
||||||
if( env.BRANCH_NAME == 'master' ) {
|
when {
|
||||||
stage('Deploy') {
|
expression {
|
||||||
steps {
|
currentBuild.result == null || currentBuild.result == 'SUCCESS'
|
||||||
sh './mvnw deploy'
|
}
|
||||||
}
|
}
|
||||||
|
steps {
|
||||||
|
echo "DEPLOY!"
|
||||||
|
/* sh './mvnw deploy' */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue