2

I want to kill hundreds of pipeline runs of specific pipeline and specific branch (without deleting either of them). Any idea how I can do it?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Abhishek
  • 539
  • 5
  • 25

1 Answers1

2

This can be done via a script which first calls all the runs of pipeline with

GET /runs?pipelineIds=&statusCodes=

and then cancels them one by one using:

POST /runs/:runId/cancel

Status codes of incomplete runs are 4000, 4001, 4005, 4015, 4016, 4022

Refer documentation for more details

Abhishek
  • 539
  • 5
  • 25