We are using TFS 2017 update 2 on premise for CI and CD. In my release definition I have multiple "agent phase". Is there any possibility to skip the entire "agent phase" based on some conditions?
We are using TFS 2017 update 2 on premise for CI and CD. In my release definition I have multiple "agent phase". Is there any possibility to skip the entire "agent phase" based on some conditions?
An agent phase is a way of defining a sequence of tasks that will run on one or more agents. At run time, one or more jobs are created to be run on agents that match the demands specified in the phase properties.
Unlike the build task, you could not simply disable/skip the task by right click it and select "disable selected task(s)". You need configure the Run this phase properties for an agent phase to run or not when specific conditions are met.
For "custom" you need to enter an expression that evaluates to true or false and controls when this phase should run. This is for the single agent phase. It's not able to skip the entire "agent phase" on some conditions.