From 109b975967db076cf9a9968ddd1c3173fc7e1bbb Mon Sep 17 00:00:00 2001 From: Aravind <95919403+aravind-opsverse@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:20:01 +0530 Subject: [PATCH] Assign raw output to var (#2) --- script/check-quality-gate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/check-quality-gate.sh b/script/check-quality-gate.sh index 1d0f8de..08d80c8 100755 --- a/script/check-quality-gate.sh +++ b/script/check-quality-gate.sh @@ -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"