Add enable/disable option

Issue #1 new
Former user created an issue

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)

  1. Alexey Chystoprudov

    Thank you for feedback. I believe it can be achieved by using variable planRepository.1.branch For example planRepository.1.branch equals develop Screen Shot 2018-11-29 at 16.04.17.png

  2. Patrick Flood

    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 #2 suggests otherwise...

  3. Alexey Chystoprudov

    I think it's possible to use matches condition and prepare regexp which will be true for all values except "develop"

    Regarding #2 I'm going to check it in recent days

  4. Patrick Flood

    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)

  5. Log in to comment