Skip to content

Commit

Permalink
ES-1621: active forward merge automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanbrowne authored Nov 13, 2023
1 parent e0b5f1f commit aa3af51
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .ci/JenkinsfileMergeAutomation
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#! groovy
@Library('[email protected]') _

/**
* 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'
)

0 comments on commit aa3af51

Please sign in to comment.