DevOps / Gitlab Interview questions
What are stages and jobs in a GitLab pipeline?
A job is the smallest unit of work in a GitLab pipeline: a set of shell commands run by a runner, such as compiling code or running a test suite. A stage is a named grouping of jobs that controls execution order at a higher level, like build, test, and deploy.
By default, stages run sequentially: every job in build must finish before any job in test starts. Within a single stage, all jobs run in parallel, limited only by how many runners are available.
| Stage | Job |
| Groups related jobs together. | Runs actual commands. |
| Runs in sequence with other stages. | Runs in parallel with jobs in the same stage. |
Defined once under stages:. | Assigned to a stage via stage:. |
More Related questions...