We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37e36e4 commit 3948cfdCopy full SHA for 3948cfd
1 file changed
.harness/orgs/PROD/projects/Harness_Split/pipelines/pythonclient.yaml
@@ -42,10 +42,10 @@ pipeline:
42
spec:
43
shell: Sh
44
command: |-
45
- # Get SonarQube quality gate status
46
QUALITY_GATE_STATUS=$(curl -u <+secrets.getValue('sonarqube_token')> : -s 'https://sonar.harness.io/api/qualitygates/project_status?projectKey=python-client&pullRequest=${<+codebase.prNumber>}' | jq -r .projectStatus.status)
47
48
echo "QUALITY_GATE_STATUS: $QUALITY_GATE_STATUS"
+
49
# Set GitHub status based on quality gate
50
if [ "$QUALITY_GATE_STATUS" = "OK" ]; then
51
STATE="success"
0 commit comments