我有一个需要从 Jenkins 仪表板查看的 HTMl 报告。该报告已成功存档,如控制台输出中所示。我的脚本看起来像:
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: ''
])
}