Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Condition in bamboo task

I see now we have the ability to run tasks based on some condition.


Let's say I have several stages with different jobs. I only want to run a particular stage (e.g. for UI tests) if the branch is master.


I'm guessing I could set a condition on the first task but the rest of the tasks would run?  Is it possible to skip all the tasks based on one condition, rather than setting the condition on all tasks?

1 answer

0 votes

Add Stop job task and make it conditional

I can do that, but let's say I want to stop the job for all branches except for the release branch.


The release branch will be called:

'release-137' for example.


So my stop job task would need to be:


Stop job if the branch name doesn't contain 'release'.


There is a 'matches' condition, but no 'does not match'  condition.

Matches condition supports negate regex

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

961 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you