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,10 +36,12 @@ 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') {
|
||||||
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
|
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
||||||
|
sh "${mvn} org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue