gpt4 book ai didi

jenkins - 如何修复 Jenkins HTML 报告 "checksum mismatch"?

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

我有一台在 Linux Ubuntu 上运行的全新 Jenkins 机器。我使用 HTML Publisher Plugin 发布我的 html 报告。我还使用 Jsystem 来调用测试场景。

  • Jenkins 1.643
  • Html 发布者插件 1.10

  • 在测试结束时打开 最新 来自 的 html 报告项目主页我收到此错误:

    Checksum mismatch

    The checksum of the current wrapper file (0dd0c5ec07dff1d7179f03b5deb290e96ac68f8c) does not match the recorded checksum (090f21ac5f8c4b0eed9e789145a2fe2a6134c900). This indicates a possible security issue, therefore Jenkins will not serve this file. You can access the archived HTML files here.



    我检查了文件和权限的存在。如果我从工作页面打开报告,那么一切正常。

    更新 :

    当我从工作页面打开报告时,我没有 CSS 并且有很多错误。
    看起来像一个安全问题。

    更新 2 :

    CSS 和 Javascript 回来了,Jenkins 更新了他们的 Content Security Policy .向 Jenkins 启动脚本添加了 args。第一期还在继续。 :(

    最佳答案

    这是该版本的 HTML 发布器插件中的一个错误。如果您的工作中有多个报告,则会发生该错误,标记发布选项:“保留过去的 HTML 报告”,然后单击第二个报告。

    https://issues.jenkins-ci.org/browse/JENKINS-32281

    解决方案在 https://jenkins.ci.cloudbees.com/job/plugins/job/htmlpublisher-plugin/61/ .

    解决方案作为插件的 1.11 发布。

    关于jenkins - 如何修复 Jenkins HTML 报告 "checksum mismatch"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34419223/

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