gpt4 book ai didi

jenkins - 如何让 Jenkins Blue Ocean UI 显示指向 Cucumber Reports 的链接?

转载 作者:行者123 更新时间:2023-12-04 01:36:27 25 4
gpt4 key购买 nike

我有一个使用 Cucumber Reports plugin 的 Jenkins 管道.我将 Jenkins 与 GitLab 集成在一起。

在 GitLab 中,我可以查看特定提交是否通过了测试,然后单击一个图标我会转到测试它的管道。显示蓝海界面。

问题是我无法获得从 Blue Ocean 界面到我的 Cucumber Reports 的链接。我进入经典界面,然后单击左侧栏中的 Cucumber 报告链接。

我的最终用户正在编辑测试,我想让他们了解 Jenkins 不一致的用户界面。

是否可以从 Blue Ocean 界面添加到报告的链接?

最佳答案

参见 here关于类似主题的 Jenkins 论坛讨论。看起来可以使用 HTML Publisher 插件。将jenkins论坛的相关信息复制到这里,以防以后链接无法访问:

plugin: HTML Publisher plugin

jenkinsfile: publishHTML(target:
[allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true,
reportDir: 'doc/internal/html', reportFiles: 'index.html', reportName:
'DOC', reportTitles: ''])

blueocean ui: makes the HTML appear as a link in the artifact list in Blue Ocean

关于jenkins - 如何让 Jenkins Blue Ocean UI 显示指向 Cucumber Reports 的链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59365408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com