Add enable/disable option
This is a great addition to Bamboo, thank you!
I'd suggest that it needs an option to determine whether the job should be enabled or disabled when the criteria are met.
For instance, if we want a particular task disabled if running on the develop branch but enabled on all others I don't think there's a way to do that with the current implementation.
Comments (4)
-
-
Hi Alexy - that would enable the task for develop, but what if we want it disabled only if running on develop? Also, are plan variables accessible in this way? Issue
#2suggests otherwise... -
I think it's possible to use matches condition and prepare regexp which will be true for all values except "develop"
Regarding
#2I'm going to check it in recent days -
True enough, all things are possible with regular expressions! But: https://xkcd.com/1171/ ;)
I think some sort of toggle to either A)Enable if true/Enable if false or B)Enable if true/Disable if true would make it much easier to use (I'd love to see this for requirements as well, FWIW, something like 'capability A matches X and capability B does not match Y' would be great)
- Log in to comment
Thank you for feedback. I believe it can be achieved by using variable planRepository.1.branch For example planRepository.1.branch equals develop