You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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 :(