Я нажимаю на сонар api ( api / qualitygates / project_status? AnalysisId = xyz ) из конвейера на основе analysisId , чтобы получить статус проекта. Полученный ответ основан на Type[bugs/vulnerability/code-smells]
Возможно ли получить статус на основе Severity [blocker/critical/major]
?
{
"projectStatus": {
"status": "ERROR",
"conditions": [
{
"status": "OK",
"metricKey": "bugs",
"comparator": "GT",
"errorThreshold": "0",
"actualValue": "0"
},
{
"status": "ERROR",
"metricKey": "vulnerabilities",
"comparator": "GT",
"errorThreshold": "0",
"actualValue": "31"
},
{
"status": "ERROR",
"metricKey": "code_smells",
"comparator": "GT",
"errorThreshold": "0",
"actualValue": "72"
}
],
"periods": [
],
"ignoredConditions": false
}
}