Only deploy when on master branch

This commit is contained in:
Paul Campbell 2018-02-24 20:45:38 +00:00
parent ffdc554c60
commit 96782dc303

5
Jenkinsfile vendored
View file

@ -15,6 +15,11 @@ pipeline {
}
}
stage('Deploy') {
when {
expression {
env.GIT_BRANCH === 'master'
}
}
steps {
sh './mvnw -B -Dskip-Tests=true -P release deploy'
}