Feedback

Chat Icon

Cloud Native CI/CD with GitLab

From Commit to Production Ready

Direct Acyclic Graph (DAG) Pipelines: Non-Sequential Faster Pipelines
41%

Key Takeaways

An interesting and productive feature of GitLab CI/CD is the ability to define dependencies between jobs using the needs keyword and run them in a single stage (stageless pipeline). This feature allows you to create Directed Acyclic Graph (DAG) pipelines where jobs can run as soon as their dependencies are met, rather than waiting for entire stages to complete. Here is what we should remember from this chapter:

  • By default, jobs in the same stage run in parallel.

  • Jobs in different stages will always run sequentially.

  • Using the needs keyword, you can define dependencies between jobs, allowing jobs to run as soon as their dependencies are met, regardless of stages.

  • Stageless pipelines can be created by removing stages from the .gitlab-ci.yml

Cloud Native CI/CD with GitLab

From Commit to Production Ready

Enroll now to unlock all content and receive all future updates for free.