I have a pipeline setup to do a automated release when I commit to a specific branch. The problem is that maven-release-plugin that I use commit its changes to the same repository and branch. This triggers the same pipeline and creates a loop.
How to exclude sertain commits for a specific branch?
name: TEST01 - Automatic build and test
# Here I would like to add a check to stop if some criteria is met like commitmessage==[maven-release-plugin] or something similar
- mvn release:clean release:prepare --batch-mode -f ggw-core/pom.xml -s ggw-core/external/settings-test01.xml
- mvn release:perform -f ggw-core/pom.xml -s ggw-core/external/settings-test01.xml -X -e
to the release:prepare command as shown in https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-configure-my-pipeline-to-control-versioning/qaq-p/553721#M91377
This will make pipelines ignore the new commits.
Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events