Merge pull request #78 from kemitix/jenkins
Jenkins SonarQube fix deployment
This commit is contained in:
commit
8a47177dbd
1 changed files with 4 additions and 2 deletions
|
@ -36,13 +36,15 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('SonarQube (develop only)') {
|
||||
when { expression { env.GIT_BRANCH == 'develop' } }
|
||||
when { expression { env.GIT_BRANCH == 'develop' && env.GIT_URL.startsWith('https://') } }
|
||||
steps {
|
||||
withSonarQubeEnv('sonarqube') {
|
||||
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
||||
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build Java Next') {
|
||||
when { expression { true == false } }
|
||||
steps {
|
||||
|
|
Loading…
Reference in a new issue