Skip to content

Instantly share code, notes, and snippets.

@jayveersolanki
Last active August 7, 2024 08:37
Show Gist options
  • Save jayveersolanki/df48a4a4fbc598eb43edb2533847baad to your computer and use it in GitHub Desktop.
Save jayveersolanki/df48a4a4fbc598eb43edb2533847baad to your computer and use it in GitHub Desktop.
how to stop an unstoppable zombie multibranch job
Jenkins.instance.getItemByFullName("<project-name>/<branch-name>")
.getBuildByNumber(JobNumber)
.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