什么是publishHtml reportFiles参数语法 [英] What's publishHtml reportFiles parameter syntax

查看:63
本文介绍了什么是publishHtml reportFiles参数语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Jenkinsfile为Jenkins配置HTML Publisher插件,以发布一些这样的html文件:

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"
        ]
    )

reportFiles 参数的说明此处说我应该能够指定多个文件.但是语法是什么?

The description of the reportFiles parameter here says I should be able to specify multiple files. But what's the syntax?

推荐答案

您可以指定多个逗号分隔的页面,每个页面都是报告页面上的一个标签"(来自

"you can specify multiple comma-separated pages and each will be a tab on the report page" (from the plugin docs).

所以我认为是:

reportFiles: 'test.html,other.html'

它可以支持像 *.html 这样的通配符吗?否,但是在 https://issues.jenkins-ci.org/browse中有一些解决方法/JENKINS-7139 .

can it support wildcards like *.html? no, but there are some workarounds at https://issues.jenkins-ci.org/browse/JENKINS-7139.

这篇关于什么是publishHtml reportFiles参数语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆