Only deploy when on master branch
This commit is contained in:
parent
ffdc554c60
commit
96782dc303
1 changed files with 5 additions and 0 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -15,6 +15,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
when {
|
||||||
|
expression {
|
||||||
|
env.GIT_BRANCH === 'master'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw -B -Dskip-Tests=true -P release deploy'
|
sh './mvnw -B -Dskip-Tests=true -P release deploy'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue