Rapid-fire: how do you abort a stuck build that ignores "Abort"?
IntermediateConceptBest practices & rapid-fire commands
Answer
Escalate step by step: click Abort; then use the build URL /term (terminate), then /kill (hard kill, only offered after term). From the script console as a last resort:
Jenkins.instance.getItemByFullName('shack-app/main').getBuildByNumber(42)
.doKill()
Stuck builds are usually blocked on a dead agent channel or a swallowed InterruptedException. Fix the root cause after.
More on Best practices & rapid-fire commands
What are the top Jenkinsfile best practices you follow?IntermediateWhat are the top controller best practices?IntermediateRapid-fire: how do you get the initial admin password?BeginnerRapid-fire: how do you list installed plugins and their versions?BeginnerRapid-fire: how do you trigger a parameterized build with curl and follow it?BeginnerRapid-fire: how do you run the controller in Docker for a quick test?Beginner