June 2020
Intermediate to advanced
432 pages
11h 57m
English
To control the order of jobs, the dependsOn keyword can be used on the definition of a job. This signals that the job can only be started after one or more jobs are completed. Besides this, the condition keyword can be used to specify a condition that a job should run under. These two keywords can be combined to realize more complex scenarios, such as the one shown here:
jobs:- job: compile steps: ...- job: test dependsOn: compile steps: ...- job: build_schema dependsOn: compile steps: ..- job: report dependsOn: - test - build_schema condition: or(succeeded('test'), succeeded('build_schema')) steps: ..
This pipeline will start by running the job named compile. Once this job completes, the next two jobs, test and build_schema ...
Read now
Unlock full access