Only deploy when remote repo url is https
This commit is contained in:
parent
1923b849dd
commit
34cc98107d
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when { expression { (env.GIT_BRANCH == 'master') } }
|
when { expression { (env.GIT_BRANCH == 'master' && env.GIT_URL.startsWith('https://')) } }
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
||||||
sh "${mvn} deploy --activate-profiles release -DskipTests=true"
|
sh "${mvn} deploy --activate-profiles release -DskipTests=true"
|
||||||
|
|
Loading…
Reference in a new issue