Skip to content

Commit

Permalink
futher consolidate Jenkins_multibranch_pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed May 9, 2022
1 parent 5a8b68f commit 6e36b4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java/Jenkinsfile_multibranch_pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ pipeline {
agent {
docker {
args "$DITTO_DOCKER_ARGS"
image "$DITTO_DOCKER_IMAGE_MAVEN_JDK_8"
image "$DITTO_DOCKER_IMAGE_MAVEN_JDK_17"
reuseNode true
}
}
when {
Expand All @@ -67,7 +68,7 @@ pipeline {
dir("$WORKSPACE/java") {
configFileProvider([configFile(fileId: 'mvn-bdc-settings', variable: 'MVN_SETTINGS')]) {
echo 'Sonar Scan'
withSonarQubeEnv(installationName: "${env.SONAR_QUBE_ENV}", credentialsId: "$SONAR_QUBE_CREDENTIAL_NAME") {
withSonarQubeEnv(installationName: "${env.SONAR_QUBE_ENV}", credentialsId: 'sonarqube') {
sh "mvn -s $MVN_SETTINGS --batch-mode --errors $SONAR_MAVEN_GOAL " +
"-Dsonar.host.url=$SONAR_HOST_URL " +
"-Dsonar.projectKey=org.eclipse.ditto:${theBranch} " +
Expand Down

0 comments on commit 6e36b4c

Please sign in to comment.