summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
740cac3)
Change deploy_site to monitor progress of shipyard until
the action is "Complete" or a step "failed"
Signed-off-by: davidplunkett <dp7642@att.com>
Change-Id: Ia7b4a1d9070b41ea95f2fa8203acec9059b287ef
tools/airship shipyard get actions
SHIPYARD_ACTION=$(tools/airship shipyard get actions | awk '/deploy_site/ {print $2};')
tools/airship shipyard get actions
SHIPYARD_ACTION=$(tools/airship shipyard get actions | awk '/deploy_site/ {print $2};')
-
-tools/airship shipyard describe $SHIPYARD_ACTION
+SHIPYARD_CLI="tools/airship shipyard describe $SHIPYARD_ACTION"
echo "## Airship deployment has been started..."
echo "##"
echo "## To monitor progress check:"
echo "## MaaS GUI -> $MAAS_URL"
echo "## Airship deployment has been started..."
echo "##"
echo "## To monitor progress check:"
echo "## MaaS GUI -> $MAAS_URL"
-echo "## Airflow GUI -> $AIRFLOW_URL"
+echo "## Shipyard cli-> $SHIPYARD_CLI"
+#echo "## Airflow GUI -> $AIRFLOW_URL"
+
+while ( ! $SHIPYARD_CLI | grep -qe '^Lifecycle.*Complete' && ! $SHIPYARD_CLI | grep -qe '^step.*failed'); do
+ $SHIPYARD_CLI
+ echo "## Sleeping for 10 mins"
+ sleep 600
+done
+$SHIPYARD_CLI
+$SHIPYARD_CLI | grep -qe '^step.*failed'