jenkins: only deploy to sonarqube for remote repo

This commit is contained in:
Paul Campbell 2018-03-11 09:42:39 +00:00
parent 015aac3db6
commit a486e01a91

View file

@ -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') {