Strict error check for omec-cni container deployment
Change-Id: I3d5fe788a2028c3b22d88a1ac52ba4b11b7df240
diff --git a/Jenkinsfile-mcord-release-build b/Jenkinsfile-mcord-release-build
index ca5f655..f6aa928 100644
--- a/Jenkinsfile-mcord-release-build
+++ b/Jenkinsfile-mcord-release-build
@@ -174,7 +174,7 @@
for pod in \$(kubectl get pods -n kube-system | grep sriov | grep Init | awk '{print \$1}');
do
echo \$pod is initializing
- num_err_msgs=\$(kubectl describe pods \$pod -n kube-system | grep -E 'MountVolume.SetUp failed' | wc -l)
+ num_err_msgs=\$(kubectl describe pods \$pod -n kube-system | tail -4 | grep -E 'MountVolume.SetUp failed' | wc -l)
if [ \$num_err_msgs > 0 ]; then
kubectl delete pod \$pod -n kube-system --force --grace-period=0
fi