Skip to content

Instantly share code, notes, and snippets.

View jayveersolanki's full-sized avatar
🏠
Working from home

Jayveersinh Solanki jayveersolanki

🏠
Working from home
  • Ahmedabad, Gujarat
View GitHub Profile
@jayveersolanki
jayveersolanki / Jenkins Multibranch Pipeline Kill
Last active August 7, 2024 08:37
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")
);
@jayveersolanki
jayveersolanki / Jenkins Multibranch Pipeline Kill
Created June 21, 2023 04:41
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"));