From f16155d1d4c1c0194e73cceca7118a64effdc93d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 5 Mar 2018 19:31:51 +0000 Subject: [PATCH] Publish Javadocs HTML --- Jenkinsfile.groovy | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 84286e7..9bf3d0f 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -43,9 +43,25 @@ pipeline { archiveArtifacts '**/target/*.jar' } } - stage('Coverage') { + stage('Javadoc') { steps { - jacoco(execPattern: '**/target/jacoco.exec') + withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') { + sh "${mvn} -P release javadoc:javadoc" + } + publishHTML([ + allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll: false, + reportDir: 'target/site/apidocs/', + reportFiles: 'index.html', + reportName: 'Javadocs', + reportTitles: '' + ]) + } + } + stage('Quality') { + steps { + jacoco exclusionPattern: '**/*{Test|IT|Main|Application|Immutable}.class' } } stage('Deploy') {