voltctl: update config generation in physical build
* add new parameter to voltha-test pipeline definitions for the
cluster name
* after configuring the ingress on the clusters, the voltctl
needs to point to the DNS names configured for the voltha and
voltha-infra services.
Change-Id: Icaca9dc8dfed01887d98391bdb44adbad2775d68
Signed-off-by: Cristina de Francisco <cristina.defrancisco@bisdn.de>
diff --git a/jjb/pipeline/voltha/physical-build.groovy b/jjb/pipeline/voltha/physical-build.groovy
index e9f3818..6ed3a8f 100755
--- a/jjb/pipeline/voltha/physical-build.groovy
+++ b/jjb/pipeline/voltha/physical-build.groovy
@@ -120,6 +120,13 @@
steps {
timeout(20) {
installVoltctl("${branch}")
+
+ sh """
+ sed -i -e "s/server: .*/server: voltha-${cluster}:443/" \
+ -e "s/kvstore: .*/kvstore: voltha-infra-${cluster}:443/" \
+ /home/jenkins/.volt/config
+ """
+
script {
// if we're downloading a voltha-helm-charts patch, then install from a local copy of the charts
def localCharts = false