Multi-stage pipeline
As we explained previously, you can organize the jobs in your pipeline into stages
. Stages
are logical boundaries inside a pipeline flow (units of works that you can assign to an agent) that allow you to isolate the work, pause the pipeline, and execute checks or other actions. By default, every pipeline is composed of one stage, but you can create more than one and arrange those stages into a dependency graph.
The basic YAML definition of a multi-stage pipeline is as follows:
stages: - stage: Build jobs: - job: BuildJob steps: - script: echo Build! - stage: Test jobs: - job: TestOne steps: - script: echo Test 1 - job: TestTwo steps:&...