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