Skip to content
Snippets Groups Projects
Commit ed66b69c authored by Martin's avatar Martin
Browse files

adjust script; reduce timeout

parent ca5e57f9
No related branches found
No related tags found
No related merge requests found
......@@ -642,11 +642,13 @@ Boolean hasNamespaceFile(String bezeichner) {
Void waitForDeletion(String bezeichner) {
try {
sh "kubectl wait --for=delete applications/by-${bezeichner}-dev-application -n argocd --timeout=900s"
sh "kubectl wait --for=delete applications/by-${bezeichner}-dev-application -n argocd --timeout=120s"
} catch (Exception e) {
try {
sh "kubectl patch applications.argoproj.io by-${bezeichner}-dev-application -n argocd --type=json -p '[{"op": "remove", "path": "/metadata/finalizers"}]'"
sh "kubectl wait --for=delete applications/by-${bezeichner}-dev-application -n argocd --timeout=900s"
sh """
kubectl patch applications.argoproj.io by-${bezeichner}-dev-application -n argocd --type=json -p '[{"op": "remove", "path": "/metadata/finalizers"}]'
"""
sh "kubectl wait --for=delete applications/by-${bezeichner}-dev-application -n argocd --timeout=120s"
} catch (Exception e2) {
error("Application by-${bezeichner}-dev-application konnte nicht gelöscht werden")
}
......
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