Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kasunbg/99373b1517cecad45914be3a6c459b5d to your computer and use it in GitHub Desktop.
Save kasunbg/99373b1517cecad45914be3a6c459b5d 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