TFS/VSTS new build and release management is providing great flexibility in implementing CI,CD pipelines. To further enhance the flexibility a new feature “Conditional Tasks” is introduced to Tasks of build and release management. This was a user voice request that got implemented and available as preview in Team Services. This new conditional control option let’s you execute a task base on few predefined conditions and using custom conditions.
- Only when all previous tasks have succeeded
- Even if a previous task has failed, unless the build was canceled
- Even if a previous task has failed, even if the build was canceled
- Only when a previous task has failed
To enable this feature for your team services account follow the steps described below.
Preview features popup default shows preview features for your logged in user. This new Conditional task feature does not allow you to enable it only for you. You have to do it for the team services account. To view the new feature select for this account
You can read through documentation here to get more in-depth understanding of how the Custom conditions can be specified.