Guest User

Untitled

a guest
Jan 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. try{
  2. rtMaven.run pom: 'pom.xml', goals: '-B clean install '
  3. }catch(e){
  4. println "test failures?"
  5. }
  6.  
  7. rtMaven.run pom: 'pom.xml', goals: '-B clean install -Dmaven.test.failure.ignore=true'
  8.  
  9. if (manager.logContains(".*There are test failures.*")) {
  10. currentBuild.result = 'UNSTABLE'
  11. }
Add Comment
Please, Sign In to add comment