From 214bdc43609d31780f2946526c2fc8fd2d146e48 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 2 May 2018 23:10:06 +0200 Subject: Fixing build and test configuration --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index 2b07b4945..5fd6b2333 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,7 +31,7 @@ pipeline { withMaven(maven: buildMvn, jdk: buildJdk, mavenSettingsConfig: deploySettings, mavenLocalRepo: ".repository", - options: [artifactsPublisher(disabled: true), junitPublisher(disabled: true, ignoreAttachments: false)] + publisherStrategy='EXPLICIT' ) { sh "chmod 755 ./src/ci/scripts/prepareWorkspace.sh" @@ -54,10 +54,16 @@ pipeline { } post { always { - junit testDataPublishers: [[$class: 'StabilityTestDataPublisher']], testResults: '**/target/surefire-reports/TEST-*.xml' + junit testResults: '**/target/surefire-reports/TEST-*.xml' } success { archiveArtifacts '**/target/*.war,**/target/*-bin.zip' + script { + def previousResult = currentBuild.previousBuild?.result + if (previousResult && previousResult != currentBuild.result) { + notifyBuild("Fixed") + } + } } failure { notifyBuild("Build / Test failure") -- cgit v1.2.3