java-tutorials/jenkins-modules/jenkins-jobs/zombie-job/zombie-finish-script

4 lines
172 B
Plaintext

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