-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
It is currently not possible to add conditions for triggers on build plans.
If you want a "Bitbucket Server repository trigger" but also a Tag trigger, those will not be able to work in different scenarios.
The tag trigger currently has the ability to have a filter for the tag, but it would be beneficial if a condition can also be added where it will only work on, say, a specific branch.
These conditions should accept a bamboo property, so should work much the same way like task conditions currently work.
It would also be great if more than one condition can be added. If more than one condition exist on a trigger, then it should be executed top to bottom.
There's a Trigger Condition API which allows you to build plugin which adds condition to any trigger. Condition allows Bamboo to decide if specific trigger should be activated if condition is met. As reference you can look at source code of com.atlassian.bamboo.buildtrigger.PlansGreenCondition which is available if you have valid Bamboo license at my.atlassian.com