Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Condition in bamboo task

Steven Rankin June 8, 2022

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

1 vote
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2022

Add Stop job task and make it conditional

Steven Rankin June 20, 2022

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.

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2022

Matches condition supports negate regex

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events