Sonarqube-quality-action small error-handling improvement

Hi, i hope you are doing well,

I have a small suggestion concerning this action GitHub - SonarSource/sonarqube-quality-gate-action · GitHub . The action runs the following script https://github.com/SonarSource/sonarqube-quality-gate-action/blob/master/script/check-quality-gate.sh with the generated report metadata file from the sonarqube analysis. Is it possible to improve the error message on this line sonarqube-quality-gate-action/script/check-quality-gate.sh at cf038b0e0cdecfa9e56c198bbb7d21d751d62c3b · SonarSource/sonarqube-quality-gate-action · GitHub by checking first if there exists an analysisId. We got in a situation where the action run fails with “curl: (22) The requested URL returned error: 404” . Our main issue was that the sonarqube analysis failed, and the metadata report didn’t have an analysisId field.

Hi @khalilloukhnati,

Thanks for reaching out and reporting this. Welcome to the Community!

I’ve flagged this for the relevant team. Thanks again for the feedback.

Cheers,

Stevan

Hi @khalilloukhnati,

Thanks for the suggestion, and welcome to the Community!
Please find the ticket related to the suggestion, and i will work on it soon.

Regards,

Amaury