Commit 8d065728 authored by DJ Mountney's avatar DJ Mountney

Fix grep for environment in the cleanup script

parent 6f554ab9
Pipeline #24179464 failed with stages
in 23 minutes and 43 seconds
......@@ -454,7 +454,7 @@ changelog_manager:
function cleanup() {
kubectl get ingress,configmap,all,pvc -n "$KUBE_NAMESPACE" \
-o jsonpath='{range .items[*]}{.kind}{" "}{.metadata.name}{"\n"}{end}' \
| grep "CI_ENVIRONMENT_SLUG" \
| grep "$CI_ENVIRONMENT_SLUG" \
| xargs -n2 kubectl delete -n "$KUBE_NAMESPACE" \
|| true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment