gpt4 book ai didi

Jenkins 没有发现 Quality Gate 失败

转载 作者:行者123 更新时间:2023-12-02 20:51:35 31 4
gpt4 key购买 nike

如果代码没有 90% 的测试覆盖率,我希望我的 Jenkins 构建失败。为此,我安装了 Quality Gates 插件,它应该检查 SonarQube 分析。

我在 Jenkins 中的 Quality Gates 下进行了以下配置:

Name: SonarQubeServer
SonarQube Server URL: http://my-server.com:9000
SonarQube account login: admin
SonarQube account password: ****

SonarQube 显示:Quality Gate Failed

Jenkins 显示:SonarQube 分析已完成:SUCCESS 并且构建通过。

知道为什么 Jenkins 没有得到质量门失败的消息吗?

最佳答案

最终我意识到我应该为每一个使用它的工作添加Quality Gates作为Post Build Action

关于Jenkins 没有发现 Quality Gate 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42090298/

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