How to Configure GitLab Pipeline

  • the whole logic is scripted in YAML format
  • it contains the whole CI/CD pipeline configuration

Jobs

Scripts

  • inside scripts we can include a list of commands

Before Script

After Script

How to Execute the pipeline

  • you should include the pipeline logic in .gitlab-ci.yml file.
  • then it will automatically execute the pipeline

Make Jobs Sequential

  • first define the stages
  • then group the jobs on those stages by including the stage attribute in the jobs

Skip the next job if one job fails

  • add the needs attribute to the jobs