Merge pull request #76 from kemitix/jenkins

jenkins: only update sonarqube when on develop branch
This commit is contained in:
Paul Campbell 2018-03-11 09:24:46 +00:00 committed by GitHub
commit d9c526e291
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,12 +32,17 @@ pipeline {
sh "${mvn} checkstyle:checkstyle" sh "${mvn} checkstyle:checkstyle"
sh "${mvn} pmd:pmd" sh "${mvn} pmd:pmd"
pmd canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: '' pmd canComputeNew: false, defaultEncoding: '', healthy: '', pattern: '', unHealthy: ''
}
}
}
stage('SonarQube (develop only)') {
when { expression { env.GIT_BRANCH == 'develop' } }
steps {
withSonarQubeEnv('sonarqube') { withSonarQubeEnv('sonarqube') {
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar" sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
} }
} }
} }
}
stage('Build Java Next') { stage('Build Java Next') {
when { expression { true == false } } when { expression { true == false } }
steps { steps {