Home > Software engineering >  How to define parallelism for MS hosted agents with 2 pipelines
How to define parallelism for MS hosted agents with 2 pipelines

Time:05-07

We've got two YAML Pipelines, pull-request.yml and main.yml. As the names suggest, pull-request.yml runs on every PR, and main.yml runs once deployed to main. I've configured two MS hosted parallel jobs.

In main.yml using deployment jobs, I'm deploying to various Environments. It all works well, except when main.yml is executed twice, in parallel. Then, it will deploy to the same environment in each pipeline, causing issues with our IAC scripts.

Looking at the documentation, enter image description here

  • Related