Skip to content

[BB-5108] feat: cancelling deployments

Arunmozhi P requested to merge tecoholic/bb-5108-feat-cancelling-deployments into main

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

  1. Ticket with the description
  2. Discovery

Testing instructions

  1. Clone the Grove Development test repo and checkout to the test branch shimulch/test-pipeline-cancel
  2. Initialize the submodule grove git submodule init
  3. Checkout to this branch cd grove && git checkout tecoholic/bb-5108-feat-cancelling-deployments
  4. Setup private.yml with GITLAB_PROJECT_NUMERICAL_ID and GITLAB_PASSWORD
  5. Initialize the local setup using cd control && ./grove --help - required for terraform to setup initial state
  6. Commit and push to trigger a pipeline and Copy the newly created pipeline ID.
  7. Abort the pipeline by running ./grove abortpipeline <pipeline-id>

Deadline

NA

Edited by Arunmozhi P

Merge request reports