Dependency on Job in Loop

Copper Contributor

Hi All.

My problem statement is, I have to run two jobs on different agent in loop but each job should run one by one even though agent are different.

My yaml are as below.

 

stages:

- ${{ each version in parameters.versions }}

   - stage:

      - ${{ each value in parameters.value }}

         - job:

           pool:

               name: pool1

           steps:

              - script echo xyz

         - job:

           pool:

               name: pool2

           steps:

              - script echo xyz

 

Note:- No Job should run in parallel.

Could anyone suggest any solution for this.

Thanks 

0 Replies