Forum Discussion
arsh9295
Dec 25, 2022Copper Contributor
Dependency on Job in Loop
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
No RepliesBe the first to reply