Skip to content

Instantly share code, notes, and snippets.

@NenoLoje
Created December 13, 2023 21:33
Show Gist options
  • Save NenoLoje/f01ac78650e11e967071528ab083a04e to your computer and use it in GitHub Desktop.
Save NenoLoje/f01ac78650e11e967071528ab083a04e to your computer and use it in GitHub Desktop.
Azure Pipelines: Repeat a step multiple times (using `each`)
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