Skip to content

Commit 0b04f8f

Browse files
committed
Update pipeline python-client
1 parent 491b036 commit 0b04f8f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.harness/orgs/PROD/projects/Harness_Split/pipelines/pythonclient.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ pipeline:
4343
shell: Sh
4444
command: |-
4545
# Get SonarQube quality gate status
46-
curl -u <+secrets.getValue('sonarqube-token')>: \
47-
-s 'https://sonar.harness.io/api/qualitygates/project_status?projectKey=python-client&pullRequest=${<+codebase.prNumber>}'
48-
4946
QUALITY_GATE_STATUS=$(curl -u <+secrets.getValue(\'sonarqube_token\')> :\
5047
-s \'https://sonar.harness.io/api/qualitygates/project_status?projectKey=python-client&pullRequest=${<+codebase.prNumber>}\' \
5148
| jq -r .projectStatus.status)
5249
50+
echo "QUALITY_GATE_STATUS: $QUALITY_GATE_STATUS"
5351
# Set GitHub status based on quality gate
5452
if [ "$QUALITY_GATE_STATUS" = "OK" ]; then
5553
STATE="success"
@@ -61,13 +59,13 @@ pipeline:
6159
6260
# Post status to GitHub
6361
curl -X POST \
64-
-H "Authorization: token <+secrets.getValue('github_token')>" \
62+
-H "Authorization: token ${<+secrets.getValue('github_token')>}" \
6563
-H "Content-Type: application/json" \
6664
-d "{
6765
\"state\": \"$STATE\",
6866
\"description\": \"$DESCRIPTION\",
6967
\"context\": \"sonarqube/qualitygate\",
70-
\"target_url\": \"https://sonar.harness.io/dashboard?id=python-client&pullRequest=<+codebase.prNumber>\"
68+
\"target_url\": \"https://sonar.harness.io/dashboard?id=python-client&pullRequest=${<+codebase.prNumber>}\"
7169
}" \
7270
"https://api.github.com/repos/splitio/python-client/statuses/<+codebase.commitSha>"
7371
- step:

0 commit comments

Comments
 (0)