June 2020
Intermediate to advanced
432 pages
11h 57m
English
The pipeline you saw in the previous section does not specify any jobs, as you may recall from the section on classic builds. Instead, it contains a list of tasks under the steps keyword. This means that it implicitly contains only a single job. With YAML pipelines, it is also possible to create a definition that contains more than one job. To do this, the following structure can be used:
trigger: - masterpool: name: Azure Pipelines vmImage: windows-2019jobs:- job: job1 displayName: A pretty name for job1 steps: - task: DotNetCoreCLI@2 ...- job: job2 displayName: My second job pool: name: Azure Pipelines vmImage: ubuntu-18.04 ...
Instead of adding the steps keyword directly to the pipeline, first, a list of jobs is created. ...
Read now
Unlock full access