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/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)
}