I have an HTMl report that needs to be viewable from the Jenkins dashboard. The report is getting archived successfully as indicated in the console output though. My script looks like:
post {
always {
archiveArtifacts '**/target/*.tar.gz'
publishHTML([allowMissing: false,
alwaysLinkToLastBuild: false,
keepAll: false,
reportDir: 'target',
reportFiles: 'dependency-check-report.html',
reportName: 'OWASP Dependency Check Report',
reportTitles: ''
])
}