I'm trying to implement the following chain using my (Bamboo) CI server:
Code Commit (GIT, Maven Snapshot Version)
|
v
CI Build + Test
|
v
CI runs Maven release
The problem is that because the Maven release updates the POM to bump the version to the next SNAPSHOT release, the first step of the chain is triggered again.
What are the standard ways of avoiding this?
I have run into a similar issue using the sbt-release plugin. Using Bamboo, in your linked repositories, there is an advanced configuration field labeled Exclude Changesets. You can input a regular expression so that every commit with a message matching that regexp will not trigger a change.
I have set mine to (?:Setting version to)[\s]+([0-9\.]+) to match my version bump messages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With