From edf98ed593bbf0a6d68423dde9876919ebfcb5a5 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 3 Mar 2018 16:30:01 +0000 Subject: [PATCH] jenkins: add Coverage stage --- Jenkinsfile.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index a2f7898..f218cb9 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -42,6 +42,11 @@ pipeline { archiveArtifacts '**/target/*.jar' } } + stage('Coverage') { + steps { + jacoco(execPattern: '**/target/jacoco.exec') + } + } stage('Deploy') { when { expression { (env.GIT_BRANCH == 'master') } } steps {