Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- rtMaven.run pom: 'pom.xml', goals: '-B clean install '
- }catch(e){
- println "test failures?"
- }
- rtMaven.run pom: 'pom.xml', goals: '-B clean install -Dmaven.test.failure.ignore=true'
- if (manager.logContains(".*There are test failures.*")) {
- currentBuild.result = 'UNSTABLE'
- }
Add Comment
Please, Sign In to add comment