Skip to content

Commit

Permalink
ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
samo3l committed Aug 9, 2023
1 parent c2441e9 commit 1fa7575
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .ci/Jenkinsfile.gosh-tools-prepare-rc
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@ def buildGoshCli() {
#!/bin/bash
set -ex

# 3 = gosh
PIPELINE_3_ID=$(az pipelines build queue --definition-id 3 --branch \${COMMIT} --project gosh | jq .id)
PIPELINE_3_STATUS=inProgress
# 4 = gosh
PIPELINE_4_ID=$(az pipelines build queue --definition-id 4 --branch \${COMMIT} --project gosh | jq .id)
PIPELINE_4_STATUS=inProgress

until [ \$PIPELINE_3_STATUS = "completed" ]
until [ \$PIPELINE_4_STATUS = "completed" ]
do
sleep 60
PIPELINE_3_STATUS=$(az pipelines build show --project gosh --id $PIPELINE_3_ID | jq .status | tr -d '\"')
PIPELINE_4_STATUS=$(az pipelines build show --project gosh --id $PIPELINE_4_ID | jq .status | tr -d '\"')
done

cd ${WORKSPACE}
rm -rf linux-*

az pipelines runs artifact download --project gosh --artifact-name linux-amd64 --run-id $PIPELINE_3_ID --path linux-amd64 && sleep 2
az pipelines runs artifact download --project gosh --artifact-name linux-arm64 --run-id $PIPELINE_3_ID --path linux-arm64 && sleep 2
az pipelines runs artifact download --project gosh --artifact-name linux-amd64 --run-id $PIPELINE_4_ID --path linux-amd64 && sleep 2
az pipelines runs artifact download --project gosh --artifact-name linux-arm64 --run-id $PIPELINE_4_ID --path linux-arm64 && sleep 2
'''
}
}
Expand Down

0 comments on commit 1fa7575

Please sign in to comment.