summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-01-22 18:23:58 +0000
committerGerrit Code Review <review@openstack.org>2019-01-22 18:23:58 +0000
commit6a21cb58eb406b33afc96f5eabb19b526cab291d (patch)
tree94c3eba2d5d8d4d1adb248a1bb9da214b3f00c81
parent9d789d2e7c3500fd01d7bd96b9e4f37e0cf78f87 (diff)
parentf7d4b2922163f18f29131bf9cd96d5339f8fb97a (diff)
Merge "airskiff: Add steps to Shipyard wait script"
-rwxr-xr-xtools/gate/wait-for-shipyard.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gate/wait-for-shipyard.sh b/tools/gate/wait-for-shipyard.sh
index f949f3b..5786563 100755
--- a/tools/gate/wait-for-shipyard.sh
+++ b/tools/gate/wait-for-shipyard.sh
@@ -26,6 +26,10 @@ while true; do
26 status=$(${SHIPYARD} describe "$ACTION" | grep -i "Lifecycle" | \ 26 status=$(${SHIPYARD} describe "$ACTION" | grep -i "Lifecycle" | \
27 awk '{print $2}') 27 awk '{print $2}')
28 28
29 steps=$(${SHIPYARD} describe "$ACTION" | grep -i "step/" | \
30 awk '{print $3}')
31
32 # Verify lifecycle status
29 if [ "${status}" == "Failed" ]; then 33 if [ "${status}" == "Failed" ]; then
30 echo -e "\n$ACTION FAILED\n" 34 echo -e "\n$ACTION FAILED\n"
31 ${SHIPYARD} describe "${ACTION}" 35 ${SHIPYARD} describe "${ACTION}"
@@ -33,6 +37,15 @@ while true; do
33 fi 37 fi
34 38
35 if [ "${status}" == "Complete" ]; then 39 if [ "${status}" == "Complete" ]; then
40 # Verify status of each action step
41 for step in $steps; do
42 if [ "${step}" == "failed" ]; then
43 echo -e "\n$ACTION FAILED\n"
44 ${SHIPYARD} describe "${ACTION}"
45 exit 1
46 fi
47 done
48
36 echo -e "\n$ACTION completed SUCCESSFULLY\n" 49 echo -e "\n$ACTION completed SUCCESSFULLY\n"
37 ${SHIPYARD} describe "${ACTION}" 50 ${SHIPYARD} describe "${ACTION}"
38 exit 0 51 exit 0