【问题标题】:Fail Gitlab commit when not passing Sonarqube Quality Gates未通过 Sonarqube 质量门时 Gitlab 提交失败
【发布时间】:2019-09-02 01:24:56
【问题描述】:

为了将 Sonarqube 与我的 Gitlab CI 集成,我希望提交在未通过 Sonarqube 中的质量门时失败。我已经设置了我的.gitlab-ci.yml 来使用 Sonarqube 分析每个提交,但是无论结果如何,提交都是成功的。只要扫描成功完成,提交就通过了。当我的提交没有通过 Sonarqube 中的质量门时,如何确保我的提交失败?

我已经根据这篇文章设置了所有内容:SonarQube autorun with gitlab

【问题讨论】:

    标签: sonarqube gitlab gitlab-ci gitlab-ci-runner


    【解决方案1】:

    您可能缺少参数 sonar.qualitygate.wait=true

    【讨论】:

      猜你喜欢
      • 2016-05-18
      • 2014-07-03
      • 1970-01-01
      • 2017-01-24
      • 2018-11-11
      • 2020-07-21
      • 2021-05-06
      • 2015-07-05
      • 2016-08-11
      相关资源
      最近更新 更多