Created
May 29, 2020 10:55
-
-
Save wololock/c820673a15f251a2f3db426f79273619 to your computer and use it in GitHub Desktop.
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
stage("Build") { | |
steps { | |
sh "mvn clean install" | |
} | |
post { | |
always { | |
script { | |
try { | |
junit "**/target/surefire-reports/TEST-*.xml,**/target/failsafe-reports/*.xml" | |
} catch (e) { | |
echo "WARNING: couldn't publish junit test reports" | |
} | |
try { | |
jacoco execPattern: 'target/*.exec', classPattern: 'target/classes', sourcePattern: 'src/main/java', exclusionPattern: 'src/test*' | |
} catch(e) { | |
echo "WARNING: couldn't publish jacoco test coverage" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment