2.5.2. Minimal Content of an Automation Script#
A GitLab Pipeline must include at least the following elements:
is mandatory top-level key containing a list of strings that identify the sequence of stages the Pipeline will sequentially run through.
Stages are processed sequentially and define the order of job execution in a GitLab Pipeline.
are top-level keys with arbitrary names. Jobs are the individual elements that make up a GitLab CI/CD pipeline.
is a mandatory key within a job.
script
defines a list of shell commands that will be run sequentially when the job is executed.