mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.4 KiB
1.4 KiB
Azure Devops
Table of contents
Pipelines
Predefined variables
See Use predefined variables for more information.
Loops
See Expressions for more information.
Use the each keyword to loop through parameters of the object type:
parameters:
- name: listOfFruits
type: object
default:
- fruitName: 'apple'
colors: ['red','green']
- fruitName: 'lemon'
colors: ['yellow']
steps:
- ${{ each fruit in parameters.listOfFruits }} :
- ${{ each fruitColor in fruit.colors}} :
- script: echo ${{ fruit.fruitName}} ${{ fruitColor }}
Further readings
Sources
All the references in the further readings section, plus the following: