This is an automated email from the ASF dual-hosted git repository.

jstastnycz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new 8d66f5277 kie-issues#1237: stay on x.y.999-SNAPSHOT in release 
branches (#2059)
8d66f5277 is described below

commit 8d66f52772c3a8bfe1ffb0ae5532fb13a8a54361
Author: Jan Stastny <[email protected]>
AuthorDate: Wed May 22 17:57:54 2024 +0200

    kie-issues#1237: stay on x.y.999-SNAPSHOT in release branches (#2059)
    
    Co-authored-by: jstastny-cz <[email protected]>
---
 .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 7d7203aa1..c5c165f67 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
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to