Skip to content

Commit

Permalink
kie-issues#1237: stay on x.y.999-SNAPSHOT in release branches (#3527)
Browse files Browse the repository at this point in the history
Co-authored-by: jstastny-cz <jan.stastny@ibm.com>
  • Loading branch information
jstastny-cz and jstastny-cz authored May 22, 2024
1 parent 030a82a commit edbfc64
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pipeline {
currentBuild.displayName = params.DISPLAY_NAME
}

checkoutRepo(droolsRepo, getDroolsTargetBranch())
checkoutRepo(droolsRepo, getBuildBranch())
checkoutRepo(getRepoName(), getBuildBranch())
}
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit edbfc64

Please sign in to comment.