How to stop an unstoppable zombie job on Jenkins without restarting the server?

I had also the same problem and fix it via Jenkins Console.

Go to “Manage Jenkins” > “Script Console” and run a script:

 Jenkins .instance.getItemByFullName("JobName")
        .getBuildByNumber(JobNumber)
        .finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); 

You’ll have just specify your JobName and JobNumber.

Leave a Comment