【问题标题】:How to define the leak period date in SonarQube using the API?如何使用 API 在 SonarQube 中定义泄漏期日期?
【发布时间】:2018-06-27 17:25:09
【问题描述】:

我正在使用 SonarQube 6.0

是否有人使用 API 在 SonarQube 中定义了泄漏期日期?

我查看了 Web API (localhost:9000/web_api/),但没有看到详细介绍此操作的部分。

感谢任何建议。

谢谢

【问题讨论】:

    标签: api sonarqube


    【解决方案1】:

    documentation 中所示,转至管理 > 常规设置 > 常规 > 差异视图。如果您想使用脚本来执行此操作,请查看 api/properties Web 服务。

    【讨论】:

    【解决方案2】:

    所以我试过这个网址,

    curl -u d****@****.com:****** -X POST https://*****.com/api/properties?id=sonar.timemachine.period1&value=2018-06-01&resource=AdManager
    

    我的响应代码是;

    {"err_code":200,"err_msg":"property created"}
    

    但是,属性没有更新。有没有办法我可以看到为什么这失败了?日志似乎没有提及任何内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-23
      • 2017-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-16
      • 2018-05-07
      • 1970-01-01
      相关资源
      最近更新 更多