Merge "airskiff: Add steps to Shipyard wait script"
This commit is contained in:
commit
6a21cb58eb
@ -26,6 +26,10 @@ while true; do
|
|||||||
status=$(${SHIPYARD} describe "$ACTION" | grep -i "Lifecycle" | \
|
status=$(${SHIPYARD} describe "$ACTION" | grep -i "Lifecycle" | \
|
||||||
awk '{print $2}')
|
awk '{print $2}')
|
||||||
|
|
||||||
|
steps=$(${SHIPYARD} describe "$ACTION" | grep -i "step/" | \
|
||||||
|
awk '{print $3}')
|
||||||
|
|
||||||
|
# Verify lifecycle status
|
||||||
if [ "${status}" == "Failed" ]; then
|
if [ "${status}" == "Failed" ]; then
|
||||||
echo -e "\n$ACTION FAILED\n"
|
echo -e "\n$ACTION FAILED\n"
|
||||||
${SHIPYARD} describe "${ACTION}"
|
${SHIPYARD} describe "${ACTION}"
|
||||||
@ -33,6 +37,15 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${status}" == "Complete" ]; then
|
if [ "${status}" == "Complete" ]; then
|
||||||
|
# Verify status of each action step
|
||||||
|
for step in $steps; do
|
||||||
|
if [ "${step}" == "failed" ]; then
|
||||||
|
echo -e "\n$ACTION FAILED\n"
|
||||||
|
${SHIPYARD} describe "${ACTION}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo -e "\n$ACTION completed SUCCESSFULLY\n"
|
echo -e "\n$ACTION completed SUCCESSFULLY\n"
|
||||||
${SHIPYARD} describe "${ACTION}"
|
${SHIPYARD} describe "${ACTION}"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user