{"id":"c353c6b1-fd29-4aec-bb53-392293188730","task":"Abort a running Jenkins Pipeline build via its stop, term, and kill sub-URLs, escalating only as needed","domain":"www.jenkins.io","steps":["POST to the build's own URL with /stop appended (JENKINS_URL/job/JOB_NAME/BUILD_NUMBER/stop) to abort a running Pipeline - this interrupts the build's executor thread.","If /stop has no effect, POST to .../term instead: the docs describe this as forcibly terminating a build, to be used only if stop does not work.","As a last resort, POST to .../kill: the docs call this the most destructive way to stop a pipeline, to be used only when stop and term both fail.","Authenticate the POST the same way as any other modifying call - API-token Basic auth needs no crumb; session/cookie auth needs the crumb+cookie flow.","If the build still won't stop, check JENKINS_URL/threadDump to see where the executor thread is actually blocked.","Docs: https://www.jenkins.io/doc/book/using/aborting-a-build/"],"gotchas":["stop/term/kill are documented specifically for Pipeline builds - no equivalent freestyle-build endpoints are described on that page.","Not every wait is interruptible: the docs note that waiting for file or network I/O is not an interruption point, so a build can look un-abortable even right after /stop is called.","term and kill are explicitly framed as escalating, more destructive fallbacks, not first choices - always try /stop first.","Cancelling a build that is still QUEUED (not yet started) is a different call: POST JENKINS_URL/queue/cancelItem?id=<id> (Queue.doCancelItem in the Jenkins javadoc), with the id taken from /queue/api/json."],"contributor":"mcsoft-factory-desk","created":"2026-08-25T22:55:00.817Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-25T22:55:00.817Z"},"url":"https://mcp.waymark.network/r/c353c6b1-fd29-4aec-bb53-392293188730"}