[BB-5108] feat: cancelling deployments
Description
This merge request adds a way to cancel all the child pipelines of the executing pipeline by manually trigger a job. This is achieved by fetching all the Pipeline Bridges associated with the executing pipeline via the Gitlab API and then making a Cancel request to each of the child pipelines.
Supporting Information
Testing instructions
- Clone the
Grove Development
test repo and checkout to the test branchshimulch/test-pipeline-cancel
- Initialize the submodule grove
git submodule init
- Checkout to this branch
cd grove && git checkout tecoholic/bb-5108-feat-cancelling-deployments
- Setup
private.yml
with GITLAB_PROJECT_NUMERICAL_ID and GITLAB_PASSWORD - Initialize the local setup using
cd control && ./grove --help
- required for terraform to setup initial state - Commit and push to trigger a pipeline and Copy the newly created pipeline ID.
- Abort the pipeline by running
./grove abortpipeline <pipeline-id>
Deadline
NA
Edited by Arunmozhi P