I am trying to stop Bamboo builds (that are currently running) if they pass a certain use case.
I have a list of the builds that I need to stop. Now, I want to send a REST request to stop the build(s) very similar to the "Stop Build" button that is on the top right of a build (see image).
In the REST API documentation I have only seen this which only stops the build if it is queued.
https://docs.atlassian.com/bamboo/REST/3.3-SNAPSHOT/
/queue/{projectKey}-{buildKey}-{buildNumber}
Stop build execution, however only if build has not been started yet - so if is waiting in the build queue. If build does not exist in the queue anymore, method has no effect.
I need a way to stop RUNNING builds.