Stages
Build stages definition
Build stages group jobs, and run jobs in each stage in parallel, but run one stage after another sequentially.
This node uses the key name
as a default prefix if not given a map.
See also
Types
Keys
If given a map, the following keys are supported:
name
— The name of the stage (type: string, e.g.:unit tests
)if
— Condition to determine if a build, stage, or job should be run, a config source imported, or a notification sent (type: string, e.g.:branch = master
, see: Conditional Builds, Stages, and Jobs, Conditional Notifications)
Examples
stages:
- name: unit tests
if: branch = master
stages:
- unit tests
stages:
name: unit tests
if: branch = master
stages: unit tests