Commit bc95ec61 authored by Peter van 't Hof's avatar Peter van 't Hof

Fixed junit call

parent afdf1df9
...@@ -20,10 +20,10 @@ node('local') { ...@@ -20,10 +20,10 @@ node('local') {
} }
stage('Report tests') { stage('Report tests') {
junit 'target/surefire-reports/*.xml' junit '*/target/surefire-reports/*.xml'
} }
if(currentBuild.result != null && !"SUCCESS".equals(currentBuild.result)) { if(currentBuild.result == null || "SUCCESS".equals(currentBuild.result)) {
currentBuild.result = "SUCCESS" currentBuild.result = "SUCCESS"
slackSend (color: '#00FF00', message: "${currentBuild.result}: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)", channel: '#biopet-bot', teamDomain: 'lumc', tokenCredentialId: 'lumc') slackSend (color: '#00FF00', message: "${currentBuild.result}: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)", channel: '#biopet-bot', teamDomain: 'lumc', tokenCredentialId: 'lumc')
} else { } else {
...@@ -31,7 +31,7 @@ node('local') { ...@@ -31,7 +31,7 @@ node('local') {
} }
} catch (e) { } catch (e) {
if(currentBuild.result != null && !"FAILED".equals(currentBuild.result)) { if(currentBuild.result = null || "FAILED".equals(currentBuild.result)) {
currentBuild.result = "FAILED" currentBuild.result = "FAILED"
} }
slackSend (color: '#FF0000', message: "${currentBuild.result}: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)", channel: '#biopet-bot', teamDomain: 'lumc', tokenCredentialId: 'lumc') slackSend (color: '#FF0000', message: "${currentBuild.result}: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)", channel: '#biopet-bot', teamDomain: 'lumc', tokenCredentialId: 'lumc')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment