Push tech-profile in Jenkinsfile

Change-Id: I520f51f9dbe7f7a95e3b949910c50f5a74eb9a75
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index 5e4c63f..0cddb80 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -126,16 +126,17 @@
                             """
                     }
                 }
-                /*stage('Push Tech-Profile') {
+                stage('Push Tech-Profile') {
                     timeout(1) {
-                        waitUntil {
-                            sh returnStdout: true, script: """
-                            kubectl exec -it $(kubectl get pods -n voltha | grep voltha-etcd-cluster | awk ‘NR==1{print $1}‘) -n voltha /bin/sh
-                            cat voltha-system-tests/tests/data/${configFileName}-${techProfile}.json | ETCDCTL_API=3 etcdctl put service/voltha/technology_profiles/xgspon/64
-                            """
-                        }
+                        sh returnStdout: true, script: """
+                        export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
+                        etcd_container=\$(kubectl get pods -n voltha | grep voltha-etcd-cluster | awk 'NR==1{print \$1}')
+                        kubectl cp /home/cord/voltha-system-tests/tests/data/${configFileName}-${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/xgspon/64')
+                        get_result=\$(kubectl exec -it \$etcd_container -n voltha -- /bin/sh -c 'ETCDCTL_API=3 etcdctl get --prefix service/voltha/technology_profiles/xgspon/64')
+                        """
                     }
-                }*/
+                }
             }
             currentBuild.result = 'SUCCESS'
         } catch (err) {