What's publishHtml reportFiles parameter syntax
·
Answer a question
I'm trying to configure HTML Publisher plugin for Jenkins via Jenkinsfile to publish few html files like this:
publishHTML(
target: [
allowMissing : false,
alwaysLinkToLastBuild: false,
keepAll : true,
reportDir : 'my-project-grails/build/reports/codenarc',
reportFiles : 'test.html',
reportName : "Codenarc Report"
]
)
The description of the reportFiles parameter here says I should be able to specify multiple files. But what's the syntax?
Answers
"you can specify multiple comma-separated pages and each will be a tab on the report page" (from the plugin docs).
so i think it's:
reportFiles: 'test.html,other.html'
can it support wildcards like *.html? no, but there are some workarounds at https://issues.jenkins-ci.org/browse/JENKINS-7139.
更多推荐
所有评论(0)