voltctl: update ingress configuration after redeployment in berlin-lab

* handover cluster variable for helm deployments of voltha-infra and
  voltha-stack (volthaInfraDeploy.groovy and volthaStackDeploy.groovy
  are called from vars/volthaDeploy.groovy) to allow usage of it in
  'helm upgrade --install' commands
* replace default virtualhost ingress (enableVirtualHosts=true) for
  voltha-infra and voltha-stack with specific ingress host, by using
  cluster variable (paths also needs to be defined, since there is not
  default for it when defining a specific host)
* adapt volt config generation for physical-build jobs to use '.'
  instead of '-' when adding the value of the cluster variable to align
  with settings for bbsim voltctl configuration
* set default value 'local' for cluster variable when using it in
  volthaInfraDeploy.groovy context (to set voltha-infra.local as default
  ingress hostname)
* set default value 'voltha.local' for cluster variable when using it in
  volthaStackDeploy.groovy context (to set voltha.voltha.local as
  default ingress hostname)

Change-Id: I06ff30b1dafd054232f6f1d62fb0798a92a747a8
Signed-off-by: Jan Klare <jan.klare@bisdn.de>
diff --git a/jjb/pipeline/voltha/physical-build.groovy b/jjb/pipeline/voltha/physical-build.groovy
index 6ed3a8f..99871c5 100755
--- a/jjb/pipeline/voltha/physical-build.groovy
+++ b/jjb/pipeline/voltha/physical-build.groovy
@@ -122,8 +122,8 @@
           installVoltctl("${branch}")
 
           sh """
-          sed -i -e "s/server: .*/server: voltha-${cluster}:443/" \
-              -e "s/kvstore: .*/kvstore: voltha-infra-${cluster}:443/" \
+          sed -i -e "s/server: .*/server: voltha.${cluster}:443/" \
+              -e "s/kvstore: .*/kvstore: voltha-infra.${cluster}:443/" \
               /home/jenkins/.volt/config
           """
 
@@ -183,6 +183,7 @@
               bbsimReplica: bbsimReplicas.toInteger(),
               withFttb: withFttb.toBoolean(),
               adaptersToWait: numberOfAdaptersToWait,
+              cluster: cluster,
               ])
 
             if(openoltAdapterChart != "onf/voltha-adapter-openolt"){