mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-09-04 14:52:48 +00:00
mmmmmmmmmmmmmmmmmmmmmmm
This commit is contained in:
@@ -24,10 +24,10 @@ spec:
|
||||
script: |
|
||||
kubectl $(params.command) -f /source/$(params.yaml-location)
|
||||
if [ "$?" != 0 ]; then
|
||||
echo "failure" | tee /tekton/results/state
|
||||
echo "failure applying yaml file to cluster ($(params.yaml-location))" | tee /tekton/results/description
|
||||
printf "failure" > /tekton/results/state
|
||||
printf "failure applying yaml file to cluster ($(params.yaml-location))" > /tekton/results/description
|
||||
else
|
||||
echo "success" | tee /tekton/results/state
|
||||
echo "deployed the yaml files to the cluster"
|
||||
printf "success" > /tekton/results/state
|
||||
printf "deployed the yaml files to the cluster"
|
||||
fi
|
||||
exit 0
|
Reference in New Issue
Block a user