Created
December 13, 2023 21:33
-
-
Save NenoLoje/f01ac78650e11e967071528ab083a04e to your computer and use it in GitHub Desktop.
Azure Pipelines: Repeat a step multiple times (using `each`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
- name: listOfStrings | |
displayName: 'List of strings' | |
type: object | |
default: | |
- one | |
- two | |
- three | |
steps: | |
- ${{ each value in parameters.listOfStrings }}: | |
- script: echo ${{ value }} | |
displayName: 'Print ${{ value }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment