Heya,
Sometimes job can stale and you can’t just stop it via UI… So, here is small script which just hard kill stale job:
Jenkins.instance
.getItemByFullName("folderName/My.Job.Name")
.getBuildByNumber(1234)
.finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
Links where to run this: http://localhost:8080/script
Happy job killin’ :)