Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayveersolanki/d99d513a1f8497e5c38a0c2bee7b587d to your computer and use it in GitHub Desktop.
Save jayveersolanki/d99d513a1f8497e5c38a0c2bee7b587d to your computer and use it in GitHub Desktop.
how-to-stop-an-unstoppable-zombie-job-on-jenkins-without-restarting-the-server
Jenkins.instance
.getItemByFullName("<JOB NAME>")
.getBranch("<BRANCH NAME>")
.getBuildByNumber(<BUILD NUMBER>)
.finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment