fixing pod count in pipeline
Change-Id: I7102f4e054a7f4e0e405143deff3c7fee0eac3e7
diff --git a/Jenkinsfile-attworkflow-build-released-ver b/Jenkinsfile-attworkflow-build-released-ver
index 58ea182..8b8142b 100644
--- a/Jenkinsfile-attworkflow-build-released-ver
+++ b/Jenkinsfile-attworkflow-build-released-ver
@@ -117,14 +117,14 @@
waitUntil {
pods_running = sh returnStdout: true, script: """
export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
- kubectl get pods | grep -i running | wc -l
+ kubectl get pods --all-namespaces | grep -i running | grep -E -v 'docker-registry|mavenrepo|ponnet|kube-system' | wc -l
"""
- return pods_running.toInteger() == 42
+ return pods_running.toInteger() == 51
}
waitUntil {
pods_completed = sh returnStdout: true, script: """
export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
- kubectl get pods | grep -i completed | wc -l
+ kubectl get pods --all-namespaces | grep -i completed | grep -E -v 'docker-registry|mavenrepo|ponnet|kube-system' | wc -l
"""
return pods_completed.toInteger() == 3
}