Reputation: 141
I use Bamboo to release builds and publish it to Nexus. It works well using maven-release-plugin, but on Gradle, using gradle-release-plugin I got infinite loop.
Right after build plan task succeded, Bamboo checks git, found 2 new commits "[Gradle Release Plugin]" created during previous release and starts again and again.
How to make Bamboo ignore these commits?
Upvotes: 2
Views: 434
Reputation: 590
You can configure Bamboo repository to ignore changes which match the ones created by gradle-release-plugin.
More information in the docs
Upvotes: 3
Reputation: 141
I found this Atlassian issue https://jira.atlassian.com/browse/BAM-5758. Atlassian engineers just hardcoded maven-release-plugin commit messages to make Bamboo ignore it.
So all you need is to specify preTagCommitMessage and newVersionCommitMesage, masking commit messages like it's maven-release-plugin
preTagCommitMessage = '[maven-release-plugin] prepare release '
newVersionCommitMessage = '[maven-release-plugin] prepare for next development iteration '
Upvotes: 1