Skip to content

Instantly share code, notes, and snippets.

@Manuri
Last active July 9, 2018 13:12
Show Gist options
  • Save Manuri/b7d000545fd03603aece6ff2816051f3 to your computer and use it in GitHub Desktop.
Save Manuri/b7d000545fd03603aece6ff2816051f3 to your computer and use it in GitHub Desktop.
Jenkins.instance.getItemByFullName("manuri/test-build")
.getBuildByNumber(123)
.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