我们可以在 Jenkins 仪表板中生成 HTML 报告而不重定向到 HTML 页面吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24257864/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 02:03:43  来源:igfitidea点击:

Can we generate HTML report in Jenkins dashboard without redirecting to HTML page?

htmljenkinsjenkins-plugins

提问by RaviTeja

I want to customize my Jenkins report view with HTML report. I can publish HTML report using HTML Publisher plugin, but this is navigating to HTML page in full window. Instead of that, I want to generate the HTML report view inside the Jenkins dashboard where testing results or graph is displayed.

我想用 HTML 报告自定义我的 Jenkins 报告视图。我可以使用 HTML Publisher 插件发布 HTML 报告,但这是在全窗口中导航到 HTML 页面。取而代之的是,我想在显示测试结果或图表的 Jenkins 仪表板内生成 HTML 报告视图。

Can anyone suggest how to publish my HTML page inside Jenkins dashboard, like testing results and test trend graph which are embedded on Jenkins page? If any plugins available or else any modifications in configuration of Jenkins.

任何人都可以建议如何在 Jenkins 仪表板中发布我的 HTML 页面,例如嵌入在 Je​​nkins 页面上的测试结果和测试趋势图?如果有可用的插件或 Jenkins 配置中的任何修改。

采纳答案by Rachel Gallen

You can try HTML Publisher Pluginbut there is also a useful plugin called DocLinkswhich allows you to publish your documents that are created in the build steps as links on the project page. Other ones are Doxygenand Cucumber.

您可以尝试HTML Publisher Plugin,但还有一个名为DocLinks的有用插件,它允许您将在构建步骤中创建的文档作为项目页面上的链接发布。其他的是DoxygenCucumber

回答by user11016

If you have installed Dashboard view plugin,then:

如果您已安装仪表板视图插件,则:

1.Go to Edit view
2.Select "Iframe portlate" and add path of your html file.
3.Click apply.

See your dashboard.It shows HTML reports there

查看您的仪表板。它在那里显示 HTML 报告

回答by PhilLab

You can use The Rich Text Publisher Pluginwhich supports Atlassian Confluence, WikiText and HTML

您可以使用支持 Atlassian Confluence、WikiText 和 HTML的Rich Text Publisher Plugin

enter image description here

在此处输入图片说明