This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkins.instance.getItemByFullName("<project-name>/<branch-name>") | |
.getBuildByNumber(JobNumber) | |
.finish(hudson.model.Result.ABORTED, | |
new java.io.IOException("Aborting build") | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkins.instance | |
.getItemByFullName("<JOB NAME>") | |
.getBranch("<BRANCH NAME>") | |
.getBuildByNumber(<BUILD NUMBER>) | |
.finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); |