It seems like, atleast once a day, sonar sends a payload that does not contain any information regarding the quality gate.
{
"serverUrl": "https://sonarcloud.io",
"taskId": "-redacted-",
"status": "FAILED",
"analysedAt": "2021-10-05T22:42:39+0000",
"revision": "-redacted-",
"changedAt": "2021-10-05T22:42:39+0000",
"project": {
"key": "-redacted-",
"name": "-redacted-",
"url": "-redacted-"
},
"branch": {
"name": "22222",
"type": "PULL_REQUEST",
"isMain": false,
"url": "-redacted-"
},
"properties": {
"sonar.analysis.prNumber": "22222"
}
}
The qualityGate
field is missing here, making the payload inactionable.