diff options
author | Martin Stockhammer <martin_s@apache.org> | 2018-05-02 23:10:06 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2018-05-02 23:10:06 +0200 |
commit | 214bdc43609d31780f2946526c2fc8fd2d146e48 (patch) | |
tree | a365caf543bdd27937ebc85a697f2063a3deb1eb /Jenkinsfile | |
parent | 3732f2e072260dae71325067a5402fb1306d7b0b (diff) | |
download | archiva-214bdc43609d31780f2946526c2fc8fd2d146e48.tar.gz archiva-214bdc43609d31780f2946526c2fc8fd2d146e48.zip |
Fixing build and test configuration
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 10 |
1 files changed, 8 insertions, 2 deletions
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") |