diff --git a/Jenkinsfile b/Jenkinsfile index 52db2d193..26a75e3ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -440,12 +440,6 @@ spec: kubeHelper.teardown(kubeLocks) testHelper.teardown(doNotRunTests) pipelineHelper.teardown(currentBuild.result) - if(!skipUnitTests) { - // tear down network policies deployed by the tests - kubeHelper.kube(kubectlNamespace, { - sh(script: 'kubectl --namespace="' + kubectlNamespace + '" delete networkpolicies --all', returnStatus: true); - }); - } } } }