Merge pull request #17 from kemitix/publish-javadocs

jenkins: Publish Javadocs HTML
This commit is contained in:
Paul Campbell 2018-03-05 22:49:14 +00:00 committed by GitHub
commit aaa3a98c16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,9 +43,25 @@ pipeline {
archiveArtifacts '**/target/*.jar' archiveArtifacts '**/target/*.jar'
} }
} }
stage('Coverage') { stage('Javadoc') {
steps { 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') { stage('Deploy') {