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
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"));