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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Matches condition supports negate regex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.