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.

Logo

CI/CD社区为您提供最前沿的新闻资讯和知识内容

更多推荐