Skip to content

Commit

Permalink
ci: increase verbosity of wait script
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanGalloway committed Mar 29, 2022
1 parent 1faabd3 commit 74b3675
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/ci/waitForCIJob.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -x

echo "Waiting for the test job to finish"
echo "GitHub Run ID $GITHUB_RUN_ID"
Expand All @@ -8,7 +9,8 @@ echo "GitHub Run ID $GITHUB_RUN_ID"

while [[ $(kubectl get job -l ci-run=$GITHUB_RUN_ID,test-name=${TEST_NAME:-pytest} -o json | jq -r '.items[0].status.succeeded') != 1 ]]
do
sleep 5;
kubectl get job -l ci-run=$GITHUB_RUN_ID,test-name=${TEST_NAME:-pytest}
sleep 30;
done

echo "Job is complete"
echo "Job is complete"

0 comments on commit 74b3675

Please sign in to comment.