<tfoot id='bKpg5'></tfoot>

  • <i id='bKpg5'><tr id='bKpg5'><dt id='bKpg5'><q id='bKpg5'><span id='bKpg5'><b id='bKpg5'><form id='bKpg5'><ins id='bKpg5'></ins><ul id='bKpg5'></ul><sub id='bKpg5'></sub></form><legend id='bKpg5'></legend><bdo id='bKpg5'><pre id='bKpg5'><center id='bKpg5'></center></pre></bdo></b><th id='bKpg5'></th></span></q></dt></tr></i><div id='bKpg5'><tfoot id='bKpg5'></tfoot><dl id='bKpg5'><fieldset id='bKpg5'></fieldset></dl></div>

    • <bdo id='bKpg5'></bdo><ul id='bKpg5'></ul>

      1. <small id='bKpg5'></small><noframes id='bKpg5'>

        <legend id='bKpg5'><style id='bKpg5'><dir id='bKpg5'><q id='bKpg5'></q></dir></style></legend>

        如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?

        How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)

        <small id='MOpn3'></small><noframes id='MOpn3'>

          <bdo id='MOpn3'></bdo><ul id='MOpn3'></ul>
          <i id='MOpn3'><tr id='MOpn3'><dt id='MOpn3'><q id='MOpn3'><span id='MOpn3'><b id='MOpn3'><form id='MOpn3'><ins id='MOpn3'></ins><ul id='MOpn3'></ul><sub id='MOpn3'></sub></form><legend id='MOpn3'></legend><bdo id='MOpn3'><pre id='MOpn3'><center id='MOpn3'></center></pre></bdo></b><th id='MOpn3'></th></span></q></dt></tr></i><div id='MOpn3'><tfoot id='MOpn3'></tfoot><dl id='MOpn3'><fieldset id='MOpn3'></fieldset></dl></div>
            <tfoot id='MOpn3'></tfoot>
                  <tbody id='MOpn3'></tbody>

              1. <legend id='MOpn3'><style id='MOpn3'><dir id='MOpn3'><q id='MOpn3'></q></dir></style></legend>

                1. 本文介绍了如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 maven 构建我的 java 应用程序,Jenkins 用于 CI,Sonar 用于指标.

                  I am using maven to build my java app, Jenkins for CI and Sonar for metrics.

                  目前我有一个创建声纳报告的构建作业.(通过 Jenkins 中的构建后步骤触发.)

                  Currently I have a build job that creates the sonar report. (Triggered via a post-build step in Jenkins.)

                  如果满足某些阈值 - 即任何主要或阻止程序违规或复杂性超过 1.7,我想将其设置为使构建失败.

                  I would like to set this up to fail the build if certain thresholds are met - i.e. any major or blocker violations or Complexity more than 1.7.

                  任何指导将不胜感激!- L

                  Any guidance would be appreciated! - L

                  推荐答案

                  安装 构建断路器插件.

                  如果代码违反任何 警报阈值 您在项目的 Sonar 质量配置文件中指定.

                  Fails your build if the code breaches any of the alert thresholds you specify on the project's Sonar quality profile.

                  Sonarqube 不再推荐使用这个插件:

                  Sonarqube no longer recommends the use of this plugin:

                  • http://www.sonarqube.org/why-你不应该使用build-breaker/

                  自从我 7 年前写这个答案以来,产品似乎发生了变化

                  It appears the product has changed since I wrote this answer 7 years ago

                  • https://blog.sonarsource.com/打破声纳分析与詹金斯管道/

                  这篇关于如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                  <small id='74oH8'></small><noframes id='74oH8'>

                    <legend id='74oH8'><style id='74oH8'><dir id='74oH8'><q id='74oH8'></q></dir></style></legend>
                  • <tfoot id='74oH8'></tfoot>
                    <i id='74oH8'><tr id='74oH8'><dt id='74oH8'><q id='74oH8'><span id='74oH8'><b id='74oH8'><form id='74oH8'><ins id='74oH8'></ins><ul id='74oH8'></ul><sub id='74oH8'></sub></form><legend id='74oH8'></legend><bdo id='74oH8'><pre id='74oH8'><center id='74oH8'></center></pre></bdo></b><th id='74oH8'></th></span></q></dt></tr></i><div id='74oH8'><tfoot id='74oH8'></tfoot><dl id='74oH8'><fieldset id='74oH8'></fieldset></dl></div>

                          <bdo id='74oH8'></bdo><ul id='74oH8'></ul>
                            <tbody id='74oH8'></tbody>