Skip to content

Commit

Permalink
Assign raw output to var (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-opsverse authored Feb 19, 2024
1 parent 250f299 commit 109b975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/check-quality-gate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ printf '\n'
analysisId="$(jq -r '.task.analysisId' <<< "${task}")"
qualityGateUrl="${serverUrl}/api/qualitygates/project_status?analysisId=${analysisId}"
qualityGateStatus="$(curl --location --location-trusted --max-redirs 10 --silent --fail --show-error --user "${SONAR_TOKEN}": "${qualityGateUrl}" | jq -r '.projectStatus.status')"
qualityGateProjectStatus="$(curl --location --location-trusted --max-redirs 10 --silent --fail --show-error --user "${SONAR_TOKEN}": "${qualityGateUrl}" | jq -r '.projectStatus.conditions')"
qualityGateProjectStatus="$(curl --location --location-trusted --max-redirs 10 --silent --fail --show-error --user "${SONAR_TOKEN}": "${qualityGateUrl}" | jq '.projectStatus.conditions')"

dashboardUrl="$(sed -n 's/dashboardUrl=\(.*\)/\1/p' "${metadataFile}")"
analysisResultMsg="Detailed information can be found at: ${dashboardUrl}\n"
Expand Down

0 comments on commit 109b975

Please sign in to comment.