Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jay-johnson/c3afdc560791b94009fa8373c1c3ec8a to your computer and use it in GitHub Desktop.

Select an option

Save jay-johnson/c3afdc560791b94009fa8373c1c3ec8a to your computer and use it in GitHub Desktop.
Stop testing if there was an exception and log the error out for debugging
} catch (Exception err) {
err_msg = "Test had Exception(${err})"
currentBuild.result = 'FAILURE'
error "FAILED - Stopping build for Error(${err_msg})"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment