How to make job conditional

Thorbjørn Olesen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2019

How can I make a job conditional to depend on some plan variable?

I am currently using the Conditional Tasks app and it works fine. I can use this as a workaround by to skip all tasks of a job by making each task conditional, but this is tedious and error prone. Furthermore, this workaround requires a free build agent to pick up the job and process it, only to find out it potentially can skip all the tasks.

I cannot use job capability requirements for this purpose, as the condition is based on plan variables.

I imagine such functionality would require a the creation of a new "Conditional Jobs" app, where the server itself would be responsible for evaluating the condition?

1 answer

1 accepted

1 vote
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 20, 2019

There's no possibility to mark Job conditional but Conditional Tasks app contains special Task Stop job which can be ... conditional. It was designed exactly for your usecase. Put it as first task of your job and let condition decide if you need to run rest of it.

It still requires agent to run it :(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events