From 5b5b42568f5e3a779a2c102989ea67e1d838a55d Mon Sep 17 00:00:00 2001 From: Tiago Bento Date: Wed, 22 May 2024 16:52:51 -0400 Subject: [PATCH] Change CI --- .ci/jenkins/Jenkinsfile.setup-branch | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.setup-branch b/.ci/jenkins/Jenkinsfile.setup-branch index 30b87417ec1..9a4357bca83 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -23,7 +23,6 @@ import org.jenkinsci.plugins.workflow.libs.Library import org.kie.jenkins.MavenCommand droolsRepo = 'incubator-kie-drools' -dataIndexEphemeralImageName = 'docker.io/apache/incubator-kie-kogito-data-index-ephemeral' pipeline { agent { @@ -98,8 +97,8 @@ pipeline { getMavenCommand(getRepoName()) .withOptions(['-pl :kogito-quarkus-workflow-common-deployment']) .withSettingsXmlFile(MAVEN_SETTINGS_FILE), - 'data-index-ephemeral.image', - getDataIndexEphemeralImage() + 'data-index-ephemeral.image.tagVersion', + getDataIndexEphemeralImageTagVersion() ) } } @@ -199,13 +198,10 @@ String getWorkflowCommonDeploymentRelativePath() { return 'quarkus/extensions/kogito-quarkus-workflow-extension-common/kogito-quarkus-workflow-common-deployment' } -String getDataIndexEphemeralImage() { - if (isMainBranch()) { - return "${dataIndexEphemeralImageName}:main" - } +String getDataIndexEphemeralImageTagVersion() { String version = getKogitoVersion() if (version.endsWith('-SNAPSHOT')) { - return "${dataIndexEphemeralImageName}:${util.getMajorMinorVersion(version)}" + return getBuildBranch() // E.g., `main` or `10.0.x` } - return "${dataIndexEphemeralImageName}:${util.getMajorMinorVersion(version)}" + return util.getMajorMinorVersion(version) // E.g., `10.0` }