From 8d66f52772c3a8bfe1ffb0ae5532fb13a8a54361 Mon Sep 17 00:00:00 2001 From: Jan Stastny Date: Wed, 22 May 2024 17:57:54 +0200 Subject: [PATCH] kie-issues#1237: stay on x.y.999-SNAPSHOT in release branches (#2059) Co-authored-by: jstastny-cz --- .ci/jenkins/Jenkinsfile.setup-branch | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.setup-branch b/.ci/jenkins/Jenkinsfile.setup-branch index 7d7203aa16..c5c165f671 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -34,7 +34,7 @@ pipeline { currentBuild.displayName = params.DISPLAY_NAME } - checkoutRepo(droolsRepo, getDroolsTargetBranch()) + checkoutRepo(droolsRepo, getBuildBranch()) checkoutRepo(kogitoRuntimesRepo, getBuildBranch()) checkoutRepo(getRepoName(), getBuildBranch()) } @@ -128,18 +128,6 @@ void checkoutRepo(String repository, String branch) { } } -String getDroolsTargetBranch() { - String targetBranch = getBuildBranch() - List versionSplit = targetBranch.split("\\.") as List - - if (versionSplit[0].isNumber()) { - targetBranch = "${Integer.parseInt(versionSplit[0]) + 7}.${versionSplit.tail().join('.')}" - } else { - echo "Cannot parse targetBranch as release branch so going further with current value: ${targetBranch}" - } - return targetBranch -} - String getRepoName() { return env.REPO_NAME }