Hi there,
we are running a SonarQube version 8.2.
I am adding a new project and running all 3 tasks for SonarQube. While 2 tasks are executed with no issues the “Publish Quality Gate Result” task fails with:
##[error][SQ] Error retrieving analysis: [SQ] API GET '/api/qualitygates/project_status' failed, status code was: 403
##[error][SQ] Could not fetch analysis for ID 'AXHQYEqjZ7c9iEHKPm5r'
Where if I go and check the link manually I can get the results:
https://SERVER/api/qualitygates/project_status?analysisId=AXHQYEqjZ7c9iEHKPm5r
with this inside:
{
“projectStatus”: {
“status”: “OK”,
“conditions”: [{
“status”: “OK”,
“metricKey”: “new_reliability_rating”,
“comparator”: “GT”,
“periodIndex”: 1,
“errorThreshold”: “1”,
“actualValue”: “1”
},
{
“status”: “OK”,
“metricKey”: “new_security_rating”,
“comparator”: “GT”,
“periodIndex”: 1,
“errorThreshold”: “1”,
“actualValue”: “1”
},
{
“status”: “OK”,
“metricKey”: “new_maintainability_rating”,
“comparator”: “GT”,
“periodIndex”: 1,
“errorThreshold”: “1”,
“actualValue”: “1”
}],
“periods”: [{
“index”: 1,
“mode”: “PREVIOUS_VERSION”,
“date”: “2020-05-01T11:15:43+0200”
}],
“ignoredConditions”: false
}
}
Any advise on how to troubleshoot this?
Thanks.