Merge "add static hostname resolution for voltha-api and etcd ingress on k8s"
diff --git a/jjb/pipeline/voltha/physical-build.groovy b/jjb/pipeline/voltha/physical-build.groovy
index 9dfb588..17d48b3 100755
--- a/jjb/pipeline/voltha/physical-build.groovy
+++ b/jjb/pipeline/voltha/physical-build.groovy
@@ -16,7 +16,6 @@
 
 // NOTE we are importing the library even if it's global so that it's
 // easier to change the keywords during a replay
-
 library identifier: 'cord-jenkins-libraries@master',
     retriever: modernSCM([
       $class: 'GitSCMSource',
diff --git a/vars/installVoltctl.groovy b/vars/installVoltctl.groovy
index c5c48c2..560a207 100644
--- a/vars/installVoltctl.groovy
+++ b/vars/installVoltctl.groovy
@@ -181,6 +181,18 @@
     voltctl version --clientonly
 """)
 
+    sh(
+        label : 'Write /home/jenkins/.volt/config',
+        returnStdout: false,
+        script: """#!/bin/bash
+
+    bin_voltctl="$WORKSPACE/bin/voltctl"
+
+    mkdir -p "/home/jenkins/.volt"
+    rm -f "/home/jenkins/.volt/config"
+    "\${bin_voltctl}" config > "/home/jenkins/.volt/config"
+""")
+
     leave('process')
     return(ans)
 }