jenkins: update to template
This commit is contained in:
parent
9a5dcb5e7a
commit
ca46ee0d0f
1 changed files with 9 additions and 2 deletions
|
@ -28,7 +28,14 @@ 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' && env.GIT_URL.startsWith('https://') } }
|
||||||
|
steps {
|
||||||
withSonarQubeEnv('sonarqube') {
|
withSonarQubeEnv('sonarqube') {
|
||||||
|
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
||||||
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +44,7 @@ pipeline {
|
||||||
stage('Build Java Next') {
|
stage('Build Java Next') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'maven', jdk: 'JDK Next') {
|
withMaven(maven: 'maven', jdk: 'JDK Next') {
|
||||||
sh "${mvn} clean install"
|
sh "${mvn} clean install -Djava.version=9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue