Skip to content

Commit

Permalink
BXMSPROD-2104: Sonarcloud execution needs to be moved to Java 17 as m…
Browse files Browse the repository at this point in the history
…inimal (#2365)

(cherry picked from commit 66ea115)
  • Loading branch information
mbiarnes authored Aug 16, 2023
1 parent 8a2bb00 commit 4e62ad5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .ci/jenkins/Jenkinsfile.buildchain
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,14 @@ pipeline {
}
stage('Sonar analysis') {
tools {
jdk "kie-jdk11"
jdk "kie-jdk17"
maven 'kie-maven-3.8.1'
}
steps {
script {
if(isPR()) {
def project = util.getProjectTriggeringJob()[1]
if(["optaplanner", "drools", "appformer", "jbpm", "drools-wb", "kie-soup", "droolsjbpm-integration", "kie-wb-common", "optaweb-employee-rostering", "optaweb-vehicle-routing"].contains(project))
{
if(["drools", "appformer", "jbpm", "drools-wb", "kie-soup", "droolsjbpm-integration", "kie-wb-common"].contains(project)) {
dir("bc/kiegroup_${project}") {
maven.runMavenWithSettingsSonar("771ff52a-a8b4-40e6-9b22-d54c7314aa1e", "-nsu generate-resources -Psonarcloud-analysis -Denforcer.skip=true", "SONARCLOUD_TOKEN", "sonar_analysis.maven.log")
}
Expand Down

0 comments on commit 4e62ad5

Please sign in to comment.