Skip to content

Commit

Permalink
kie-issues#1237: stay on x.y.999-SNAPSHOT in release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed May 22, 2024
1 parent 60f37a6 commit 977c5ef
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 @@ -40,7 +40,7 @@ pipeline {
currentBuild.displayName = params.DISPLAY_NAME
}

checkoutRepo(droolsRepo, getDroolsTargetBranch())
checkoutRepo(droolsRepo, getBuildBranch())
checkoutRepo(kogitoRuntimesRepo, getBuildBranch())
checkoutRepo(kogitoAppsRepo, getBuildBranch())
checkoutRepo(getRepoName(), getBuildBranch())
Expand Down Expand Up @@ -189,18 +189,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 977c5ef

Please sign in to comment.