deploy app error handling

This commit is contained in:
2020-03-24 10:17:24 +01:00
parent 1f02603954
commit 7182ca27ec

View File

@@ -39,6 +39,10 @@ spec:
printf "replacing deploy version in yaml file failed, please check if the yaml file is in the correct location ($(params.yaml-location))" > /tekton/results/description
exit 0
fi
kubectl delete -f /source/$(params.yaml-location)
if [ "$?" != 0 ]; then
echo "nothting to worry abt, just means its been manually deleted before this was run"
fi
kubectl $(params.command) -f /source/$(params.yaml-location)
if [ "$?" != 0 ]; then
printf "failure" > /tekton/results/state