verify-uber-pipeline: wait for *running* worker
@@ -13,7 +13,6 @@ install fly-rc/fly_linux_amd64 /usr/local/bin/fly
until curl --fail "http://$WEB_IP:8080/api/v1/info"; do sleep 2; done
fly -t local login -c "http://$WEB_IP:8080" -u $WEB_USERNAME -p $WEB_PASSWORD || {
-
curl "http://$WEB_IP:8080/api/v1/cli?arch=amd64&platform=linux" --output /tmp/fly
install /tmp/fly /usr/local/bin/fly
@@ -22,7 +21,10 @@ fly -t local login -c "http://$WEB_IP:8080" -u $WEB_USERNAME -p $WEB_PASSWORD ||
}
# wait for worker to be available
-until [ "$(fly -t local workers | wc -l)" -eq 1 ]; do sleep 2; done
+until fly -t local workers | grep running; do
+ echo "waiting for running worker..."
+ sleep 2
+done
# test that the pipeline exists
fly -t local pipelines | grep "$PIPELINE_NAME.*no.*no"
