In lab we will explore the use of jobs.
- Modify your YAML file to add your jobs as seen below.
trigger:
- none
variables:
world: the whole world
jobs:
- job: A
displayName: First Job
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
# Write your PowerShell commands here.
Write-Host "Hello $(world)"
- job: B
displayName: Second Job
variables:
world: traditional 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 each of the Write-Host commands?