Last active
July 19, 2016 14:06
-
-
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
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
| } 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