def jobName = "" def jobNum = "" Jenkins.instance.getItemByFullName(jobName).getBuildByNumber(jobNum).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));