Replace dependencies with needs in CI/CD pipeline
Overview
This is part of the pipeline speed improvements described in #6213 (closed)
This MR changes the review
and deploy_*
jobs in the deploy
stage to use the needs
keyword instead of the dependencies
keyword, and use the Directed Acyclic Graph support.
It should make the merge request branches faster, because the deploy
stage jobs will no longer wait on the unnecessary build
stage jobs, for example code_quality
, dependency_scanning
and the spec
jobs. Plus, these jobs are either allowed to fail anyway, or not run on master.
Important Note
In merge requests, this could result in broken or invalid code getting deployed if the build
stage jobs end up failing, but the MR should not be able to be approved or merged until the failing build is fixed.
Edited by Chad Woolley