stage
Assign a job to a pipeline stage.
Supported: string name, .pre, .post
Examples
Assign to a named stage
stages:
- build
job:
stage: build
script: echo "stage string"
Run before all stages (.pre)
pre-job:
stage: .pre
script: echo "stage pre"
main-job:
script: echo "main"
Run after all stages (.post)
main-job:
script: echo "main"
post-job:
stage: .post
script: echo "stage post"