[VOL-3075] Changes for using MIB templates in the nightly jobs
Change-Id: I77d1cff6601cadf26fc07a6e248c39b9f537e4e4
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index 19baa14..24c4fd0 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -131,6 +131,10 @@
etcd_container=\$(kubectl get pods -n voltha | grep voltha-etcd-cluster | awk 'NR==1{print \$1}')
kubectl cp $WORKSPACE/voltha-system-tests/tests/data/TechProfile-${profile}.json voltha/\$etcd_container:/tmp/flexpod.json
put_result=\$(kubectl exec -it \$etcd_container -n voltha -- /bin/sh -c 'cat /tmp/flexpod.json | ETCDCTL_API=3 etcdctl put service/voltha/technology_profiles/${tech_prof_directory}/64')
+ kubectl cp $WORKSPACE/voltha-system-tests/tests/data/MIB_Alpha.json voltha/\$etcd_container:/tmp/MIB_Alpha.json
+ put_result=\$(kubectl exec -it \$etcd_container -n voltha -- /bin/sh -c 'cat /tmp/MIB_Alpha.json | ETCDCTL_API=3 etcdctl put service/voltha/omci_mibs/templates/BRCM/BVM4K00BRA0915-0083/5023_020O02414')
+ kubectl cp $WORKSPACE/voltha-system-tests/tests/data/MIB_Iskratel.json voltha/\$etcd_container:/tmp/MIB_Iskratel.json
+ put_result=\$(kubectl exec -it \$etcd_container -n voltha -- /bin/sh -c 'cat /tmp/MIB_Iskratel.json | ETCDCTL_API=3 etcdctl put service/voltha/omci_mibs/templates/BRCM/G108_10/7.0.1b8-0.6')
"""
return out_push_tp == 0
}