Created
September 29, 2017 13:39
-
-
Save witokondoria/c87148e67af73243fa7d0238ec5a99d5 to your computer and use it in GitHub Desktop.
double try/catch
This file contains 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
try { | |
sh "mvn test" | |
} catch (terr) { | |
throw new GroovyRuntimeException("Exception on tests", terr) | |
} finally { | |
archive "**/surefire-reports/*.xml" | |
try { | |
junit allowEmptyResults: true, keepLongStdio: true, testResults: "**/target/${crossbuild}/surefire-reports/*.xml" | |
} catch (juterr) { | |
mail X | |
} finally | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment