I am getting same issue like above , I am using Sonarqube version is 7.7.
When i will try it from POSTMAN webhook got trigger the alerts in Teams , But in SonarQube it was not triggering i am getting issue like below
Response: 400
Duration: 297ms
Payload:
{
“serverUrl”: “http://localhost:9000”,
“taskId”: “AWu5A3thC2pgVKslFYEh”,
“status”: “SUCCESS”,
“analysedAt”: “2019-07-03T18:03:14+0000”,
“changedAt”: “2019-07-03T18:03:14+0000”,
“project”: {
“key”: “ABC-Sonar”,
“name”: “ABC-test-Sonar”,
“url”: “http://localhost:9000/dashboard?id=ABC-Sonar”
},
“branch”: {
“name”: “master”,
“type”: “LONG”,
“isMain”: true,
“url”: “http://localhost:9000/dashboard?id=ABC-Sonar”
},
“qualityGate”: {
“name”: “Sonar way ABC”,
“status”: “ERROR”,
“conditions”: [
{
“metric”: “new_reliability_rating”,
“operator”: “GREATER_THAN”,
“value”: “3”,
“status”: “ERROR”,
“errorThreshold”: “1”
},
{
“metric”: “new_security_rating”,
“operator”: “GREATER_THAN”,
“value”: “1”,
“status”: “OK”,
“errorThreshold”: “1”
},
{
“metric”: “new_maintainability_rating”,
“operator”: “GREATER_THAN”,
“value”: “1”,
“status”: “OK”,
“errorThreshold”: “1”
},
{
“metric”: “new_coverage”,
“operator”: “LESS_THAN”,
“value”: “0.0”,
“status”: “ERROR”,
“errorThreshold”: “70”
},
{
“metric”: “new_duplicated_lines_density”,
“operator”: “GREATER_THAN”,
“value”: “8.309971966359631”,
“status”: “ERROR”,
“errorThreshold”: “3”
}
]
},
“properties”: {}
}
Help me out to resolve this issue and if any configuration is missed in SonarQube please help me ASAP.