From edbfc64ee63b97948c19fe70aa8c75649a544d8d Mon Sep 17 00:00:00 2001 From: Jan Stastny Date: Wed, 22 May 2024 17:57:45 +0200 Subject: [PATCH] kie-issues#1237: stay on x.y.999-SNAPSHOT in release branches (#3527) 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 904887fa449..30b87417ec1 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -53,7 +53,7 @@ pipeline { currentBuild.displayName = params.DISPLAY_NAME } - checkoutRepo(droolsRepo, getDroolsTargetBranch()) + checkoutRepo(droolsRepo, getBuildBranch()) checkoutRepo(getRepoName(), getBuildBranch()) } } @@ -151,18 +151,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 }