Fixing check of helm and kubectl delete master

Change-Id: I2e4c3b2b25b8726236bd2ea929d750bfa572207d
diff --git a/Jenkinsfile-attworkflow b/Jenkinsfile-attworkflow
index 5731fcb..4241d2e 100644
--- a/Jenkinsfile-attworkflow
+++ b/Jenkinsfile-attworkflow
@@ -36,7 +36,7 @@
                         waitUntil {
                             helm_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            helm ls | wc -l
+                            helm ls -q | grep -E -v 'docker-registry|mavenrepo|ponnet' | wc -l
                             """
                             return helm_deleted.toInteger() == 0
                         }
@@ -45,7 +45,7 @@
                         waitUntil {
                             kubectl_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            kubectl get pods --all-namespaces --no-headers | grep -v kube-system | wc -l
+                            kubectl get pods --all-namespaces --no-headers | grep -E -v 'kube-system|docker-registry|mavenrepo|ponnet' | wc -l
                             """
                             return kubectl_deleted.toInteger() == 0
                         }
diff --git a/Jenkinsfile-rcordlite-topdown b/Jenkinsfile-rcordlite-topdown
index 7c87aba..9dacf3e 100644
--- a/Jenkinsfile-rcordlite-topdown
+++ b/Jenkinsfile-rcordlite-topdown
@@ -36,7 +36,7 @@
                         waitUntil {
                             helm_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            helm ls | wc -l
+                            helm ls -q | grep -E -v 'docker-registry|mavenrepo|ponnet' | wc -l
                             """
                             return helm_deleted.toInteger() == 0
                         }
@@ -45,7 +45,7 @@
                         waitUntil {
                             kubectl_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            kubectl get pods --all-namespaces --no-headers | grep -v kube-system | wc -l
+                            kubectl get pods --all-namespaces --no-headers | grep -E -v 'kube-system|docker-registry|mavenrepo|ponnet' | wc -l
                             """
                             return kubectl_deleted.toInteger() == 0
                         }
diff --git a/Jenkinsfile-rcordlite-zerotouch b/Jenkinsfile-rcordlite-zerotouch
index c0243d6..4aa62db 100644
--- a/Jenkinsfile-rcordlite-zerotouch
+++ b/Jenkinsfile-rcordlite-zerotouch
@@ -36,7 +36,7 @@
                         waitUntil {
                             helm_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            helm ls | wc -l
+                            helm ls -q | grep -E -v 'docker-registry|mavenrepo|ponnet' | wc -l
                             """
                             return helm_deleted.toInteger() == 0
                         }
@@ -45,7 +45,7 @@
                         waitUntil {
                             kubectl_deleted = sh returnStdout: true, script: """
                             export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
-                            kubectl get pods --all-namespaces --no-headers | grep -v kube-system | wc -l
+                            kubectl get pods --all-namespaces --no-headers | grep -E -v 'kube-system|docker-registry|mavenrepo|ponnet' | wc -l
                             """
                             return kubectl_deleted.toInteger() == 0
                         }