In lab we will explore the use of variables.
- In your repository create a branch called lab02 from lab01.
- Make lab02 your working branch.
- Create a second yaml file and add the following content.
trigger:
- lab02
variables:
world: the whole world
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Write your PowerShell commands here.
Write-Host "Hello $(world)"
- Save and commit your change.
- Ensure that your pipeline runs.
- What was the message displayed in the log from the Write-Host command?