Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have shared tasks for different environments (stages) on VSTS?

I have release pipeline in VSTS that has four stages. Dev, Test, Pre-Prod and Prod. These stages share the same steps and the only difference are the variable values that change depending of the stage.

At the moment if I add a new step I have to add it on the four stages even if it is the same and the only difference is the value of the variables.

Is it possible to have a shared stage that is used by my four environments where the only difference would be the variables. This is to prevent having to add the same step four times

like image 936
paddingtonMike Avatar asked Oct 26 '25 21:10

paddingtonMike


1 Answers

Use task groups. Task groups allow you to define a set of build/release steps and reuse them across different builds, releases, and release environments.

like image 125
Daniel Mann Avatar answered Oct 29 '25 19:10

Daniel Mann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!