archiving voltha pod logs in bbsim-validation tests

Change-Id: Ia07d04540036c1c43c0673f2a8c1d580a951761f
diff --git a/jjb/pipeline/bbsim-validation.groovy b/jjb/pipeline/bbsim-validation.groovy
index 1c2498c..aa1e0c4 100644
--- a/jjb/pipeline/bbsim-validation.groovy
+++ b/jjb/pipeline/bbsim-validation.groovy
@@ -179,6 +179,7 @@
       sh '''
          kubectl logs bbsim-api-test --namespace default
          kubectl get pods --all-namespaces
+         ## get default pod logs
          for pod in \$(kubectl get pods --no-headers | awk '{print \$1}');
          do
            if [[ \$pod == *"onos"* && \$pod != *"onos-service"* ]]; then
@@ -188,6 +189,16 @@
            fi
          done
 
+         ## get voltha pod logs
+         for pod in \$(kubectl get pods -n voltha --no-headers | awk '{print \$1}');
+         do
+           if [[ \$pod == *"onos"* && \$pod != *"onos-service"* ]]; then
+             kubectl logs -n voltha \$pod onos> $WORKSPACE/\$pod.log;
+           else
+             kubectl logs -n voltha \$pod> $WORKSPACE/\$pod.log;
+           fi
+         done
+
          # copy robot logs
          if [ -d RobotLogs ]; then rm -r RobotLogs; fi; mkdir RobotLogs
          cp -r /tmp/helm_test_bbsim_logs_*/*ml ./RobotLogs