Update deploy_site.sh script with exit codes
It is noted during integration testing that we should have an exit code for the script. This is needed in order for us to know the final state of the workflow and to decide whether it was successful or not. Change-Id: I1f0b2a357d89fc3e898db68b930ada02b52ab398
This commit is contained in:
parent
b8d4a8a97b
commit
79f6584fa9
|
@ -108,3 +108,11 @@ done
|
|||
# Delete the temporary files
|
||||
rm /tmp/deploy_site_response.json
|
||||
rm /tmp/get_action_status.json
|
||||
|
||||
# Return exit code so that we can use it to determine the final
|
||||
# state of the workflow
|
||||
if [[ $action_lifecycle == "Complete" ]]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue