From bed608a775cc69c5009e7f2ed3e6300ce7bde9c7 Mon Sep 17 00:00:00 2001 From: Gabriele-Cardosi Date: Mon, 4 Nov 2024 17:36:35 +0100 Subject: [PATCH] [NO ISSUE] Fixing ci --- .ci/jenkins/Jenkinsfile.deploy | 2 +- .ci/jenkins/dsl/jobs.groovy | 9 +++++++++ .github/workflows/pr-kogito-examples.yml | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 17f5aa52b2..1f64eac57b 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -162,7 +162,7 @@ pipeline { getMavenCommand() .withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : []) .withOptions(env.KOGITO_EXAMPLES_BUILD_MVN_OPTS ? [ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS ] : []) - .withOptions("-pl .,kogito-quarkus-examples,kogito-springboot-examples,serverless-workflow-examples") + .withOptions("-pl .,kogito-java-examples,kogito-quarkus-examples,kogito-springboot-examples,serverless-workflow-examples") .skipTests(true) .withSettingsXmlFile(MAVEN_SETTINGS_FILE) .run("deploy -DdeployAtEnd -Dapache.repository.username=${REPOSITORY_USER} -Dapache.repository.password=${REPOSITORY_TOKEN} -DretryFailedDeploymentCount=5") diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index ff19cc8924..78895e6f71 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -46,6 +46,15 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) { parallel: true, buildchain: true, jobs : [ + [ + id: 'kogito-java-examples', + primary: true, + env : [ + // Sonarcloud analysis is disabled for examples + KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-java-examples/', + BUILD_MVN_OPTS_CURRENT: "${defaultBuildMvnOptsCurrent} ${getExamplesBuildMvnOptions(jobFolder).join(' ')}", + ] + ], [ id: 'kogito-quarkus-examples', primary: true, diff --git a/.github/workflows/pr-kogito-examples.yml b/.github/workflows/pr-kogito-examples.yml index b186957f84..4089fd8b6e 100644 --- a/.github/workflows/pr-kogito-examples.yml +++ b/.github/workflows/pr-kogito-examples.yml @@ -20,11 +20,14 @@ jobs: timeout-minutes: 180 strategy: matrix: - job_name: [ kogito-quarkus-examples, kogito-springboot-examples, serverless-workflow-examples ] + job_name: [ kogito-java-examples, kogito-quarkus-examples, kogito-springboot-examples, serverless-workflow-examples ] os: [ubuntu-latest] java-version: [17] maven-version: ['3.9.6'] include: + - job_name: kogito-java-examples + repository: incubator-kie-kogito-examples + env_KOGITO_EXAMPLES_SUBFOLDER_POM: kogito-java-examples/ - job_name: kogito-quarkus-examples repository: incubator-kie-kogito-examples env_KOGITO_EXAMPLES_SUBFOLDER_POM: kogito-quarkus-examples/