Created
July 25, 2017 09:40
-
-
Save tolleiv/44e45d4a952f6320554ef968548391b6 to your computer and use it in GitHub Desktop.
Groovy snippet to abort a build without removing it....
This file contains hidden or 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("JobName").getBuildByNumber(JobNumber).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment