Skip to content
Snippets Groups Projects
Commit c841286f authored by Vineet Reddy Rajula's avatar Vineet Reddy Rajula
Browse files

Cleanup k8s jobs as a part of tekton Tasks itself

parent 7d0318e1
No related branches found
No related tags found
1 merge request!10Add restore site task & restructure job templates
Pipeline #2837585 passed
......@@ -33,3 +33,5 @@ spec:
echo "Job status: $jobStatus"
echo "Job logs:"
oc logs "job/$TASK-$DRUPALSITE" -n "$NAMESPACE"
echo "Cleaning up Jobs"
oc delete -n "$NAMESPACE" "job/$TASK-$DRUPALSITE"
......@@ -34,3 +34,5 @@ spec:
echo "Job status: $jobStatus"
echo "Job logs:"
oc logs job/$TASK-$DRUPALSITE -n $NAMESPACE
echo "Cleaning up Jobs"
oc delete -n "$NAMESPACE" "job/$TASK-$DRUPALSITE"
......@@ -50,3 +50,5 @@ spec:
echo "Database restore Job status: $jobStatus"
echo "Database restore Job logs:"
oc logs job/$TASK-$DRUPALSITE -n $NAMESPACE
echo "Cleaning up Jobs"
oc delete -n "$NAMESPACE" "job/$TASK-$DRUPALSITE"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment