Files
oam/knowledge base/azure devops.md
2023-04-20 23:39:57 +02:00

1.4 KiB

Azure Devops

Table of contents

  1. Pipelines
    1. Predefined variables
    2. Loops
  2. Further readings
  3. Sources

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: