Access quality gate status from sonarqube api

前端 未结 2 1602
星月不相逢
星月不相逢 2020-12-17 17:27

My question:

I would like to obtain the current status of the quality gate for my projects in SonarQube via the SonarQube web api, but I do not see quality gate as

2条回答
  •  伪装坚强ぢ
    2020-12-17 18:09

    Since SonarQube 5.3 you can get the Qualitygate Status using the API: http://[sonarhost]/api/qualitygates/project_status?analysesId=[ID]

    Since SonarQube 5.4: http://[sonarhost]/api/qualitygates/project_status?projectKey=[key]

提交回复
热议问题