Forum Discussion

BigUnixAdmin007's avatar
BigUnixAdmin007
Copper Contributor
May 20, 2025

dynamic pipeline and deployments with approvals

I am looking to create a multistage YAML pipeline in Azure DevOPS that:

* Dynamically generates jobs based on the value(s) of a variable from a previous step (e.g., host names).

* Ensures that each dynamically created job includes its own approval step, either through ManualApproval@0 or via an environment.

The challenge I am facing is that while "strategy: matrix" allows for the dynamic creation of build jobs, this strategy is not permitted for deployments, which are necessary for implementing approval steps.

Do you have any suggestions on how to resolve this issue?

1 Reply

  • Instead of utilizing strategy: matrix, deployment jobs can be dynamically generated by incorporating a loop within the YAML pipeline. A job template can be defined and iterated over a set of values using stages or jobs with parameters, ensuring flexibility in deployment execution.

Resources