Category "quality-gate"

Invoke-RestMethod : {"errors":[{"msg":"Either \u0027analysisId\u0027, \u0027projectId\u0027 or \u0027projectKey\u0027 must be provided"}]}

I am trying to get quality gate status from sonar server using API by passing pull request ID but I am getting error: $QualityGateResult = Invoke-RestMethod -Me

Bash IF condition with multiple conditions not giving proper result

Trying to fetch the status of the URL for sonarqube quality gate and check if the status is "OK" the condition should pass or if the status is "ERROR" then it s