Write voltctl configuration file

Do not rely on a correct voltctl config being in place. Instead, remove
the existing file and replace it with the standard configuration file.

Also include an extra change in jjb/ to trigger jenkins job in vars/.

Signed-off-by: Roger Luethi <roger@opennetworking.org>
Change-Id: Ife29f535b089f46c42708fd2f842dc651499ff74
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)
 }