From cc8b3a8366a568821566ae991eddb45af134bbfc Mon Sep 17 00:00:00 2001 From: Stijn Bannink <27051051+stijnb1234@users.noreply.github.com> Date: Tue, 25 Feb 2020 15:54:39 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e33cfc9..bdabf22 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,16 @@ pipeline { steps { sh 'mvn -Dmaven.test.failure.ignore=true install' } + post { + always { + echo 'Archiving coverage results...' + jacoco(execPattern: '**/**.exec', classPattern: '**/classes', sourcePattern: '**/src/main/java') + echo 'Archiving test results...' + junit 'target/surefire-reports/*.xml' + echo 'Archiving artifacts...' + archiveArtifacts artifacts: 'target/*.jar', fingerprint: true + } + } } } }