From 2c4728cdf448c871b3ff585b3b412dd43024aa68 Mon Sep 17 00:00:00 2001 From: Ronan Browne Date: Mon, 13 Nov 2023 16:47:00 +0000 Subject: [PATCH] ES-1621: active forward merge automation (#204) --- .ci/JenkinsfileMergeAutomation | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .ci/JenkinsfileMergeAutomation diff --git a/.ci/JenkinsfileMergeAutomation b/.ci/JenkinsfileMergeAutomation new file mode 100644 index 0000000..ee310e0 --- /dev/null +++ b/.ci/JenkinsfileMergeAutomation @@ -0,0 +1,32 @@ +#! groovy +@Library('corda-shared-build-pipeline-steps@5.1') _ + +/** + * Forward merge any changes in current branch to the branch with following version. + * + * Please note, the branches names are intentionally separated as variables, to minimised conflicts + * during automated merges for this file. + * + * These variables should be updated when a new version is cut + */ + +/** + * the branch name of origin branch, it should match the current branch + * and it acts as a fail-safe inside {@code forwardMerger} pipeline + */ +String originBranch = 'release/5.1' + +/** + * the branch name of target branch, it should be the branch with the next version + * after the one in current branch. + */ +String targetBranch = 'release/5.2' + +/** + * Forward merge any changes between {@code originBranch} and {@code targetBranch} + */ +forwardMerger( + targetBranch: targetBranch, + originBranch: originBranch, + slackChannel: '#c5-forward-merge-bot-notifications' +) \ No newline at end of file