Jenkins.instance.getItemByFullName("sampleZombieJob") .getBuildByNumber(17) .finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));