jenkins: only deploy to sonarqube for remote repo
This commit is contained in:
parent
015aac3db6
commit
a486e01a91
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('SonarQube (develop only)') {
|
stage('SonarQube (develop only)') {
|
||||||
when { expression { env.GIT_BRANCH == 'develop' } }
|
when { expression { env.GIT_BRANCH == 'develop' && env.GIT_URL.startsWith('https://') } }
|
||||||
steps {
|
steps {
|
||||||
withSonarQubeEnv('sonarqube') {
|
withSonarQubeEnv('sonarqube') {
|
||||||
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
||||||
|
|
Loading…
Reference in a new issue