I'm currently migrating an existing CI/CD pipeline build in Azure DevOps from the ‘classic’ build approach to YAML templates.
For the project I’m migrating the code moves through multiple stages, where 2 stages should run in parallel. This is how it should like:
My first attempt looked like this:
And when I executed this pipeline, Azure DevOps translated this to the following diagram:
This was not exactly what I wanted. As you can see the ‘Productie’ stage will be executed only when the ‘Acceptatie_Extern’ stage has completed succesfully. It doesn’t matter if the ‘Acceptatie’ stage completed or not.
The good news is that this is easy to fix. We have to update the ‘Productie’ stage to depend on both the successful completion of the ‘Acceptatie’ and ‘Acceptatie_Extern’ stage. Let’s update our yaml file:
And if we now execute our pipeline again, we see that both stages are linked to ‘Productie’: