-
Bug
-
Resolution: Answered
-
Low
-
None
-
8.0.6
-
1
-
Severity 3 - Minor
-
Problem
When a Plan has a "repository trigger" configuration and also has multiple "Repository Commit" tasks, Bamboo will loop endlessly as it will only ignore one of the "Repository Commit tasks" and will consider the other commits as trigger candidates.
Environment
Bamboo 8, possibly 7
Steps to Reproduce
- Create a Linked Repository
- Create a Plan linked to that repository
- Make sure to add a Repository trigger
- Create a Checkout task, a "build task" that will change files
- Add a "Repository Commit" task
- Add a second "Build task", change more files (git add them if needed)
- Add another "Repository commit" task
- Run the Plan manual or via a commit trigger
- Watch the endless loop
Expected Results
Bamboo should run the Plan once and ignore any triggers whose origin are related to the "Repository commit" task
Actual Results
The build runs endlessly in a loop. Need to stop it manually.
Workaround
Standardise a "Commit message" in your build Plan scripts and Commit tasks and add a regular expression to the Linked Repository's Change detection options -> Exclude changesets, that will be used to ignore any commits coming from Bamboo. E.g.:
^\[BAMBOO\].*
The above regular expression will ignore any commit message that starts with [BAMBOO] and will not trigger any additional builds.
Form Name |
---|
We are aware of the limitation and we have some solution for it already (Workaround).
To prevent the loop from triggering, you can define regular expression to match the commit messages to be excluded (in repository configuration).