From b944ba666f206cb295698f7ad8101be1d9e9e048 Mon Sep 17 00:00:00 2001 From: Anthony Lin Date: Thu, 26 Apr 2018 15:48:57 +0000 Subject: [PATCH] Update execute_shipyard_action Script The CI/CD team has pointed out that they are experiencing problems in the pipeline while running the script as the wrong position was queried for the action_lifecycle. This has happened due to recent updates to the Shipyard API/CLI. This p.s. will update the script, i.e. change from position 29 to 8. Change-Id: Icd30fb43791e071207220f150886ae6201ed9e02 --- tools/execute_shipyard_action.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/execute_shipyard_action.sh b/tools/execute_shipyard_action.sh index 6db9b5a5..f563c7b5 100755 --- a/tools/execute_shipyard_action.sh +++ b/tools/execute_shipyard_action.sh @@ -116,7 +116,7 @@ run_action () { do # Get Current State of Action Lifecycle describe_action=`${base_docker_command} ${SHIPYARD_IMAGE} describe ${action_id}` - action_lifecycle=`echo ${describe_action} | awk '{print $29}'` + action_lifecycle=`echo ${describe_action} | awk '{print $8}'` if [[ $action_lifecycle == "Complete" ]]; then echo -e '\nSuccessfully performed' ${action}