Updated dmi-build-and-test pipeline with option to choose Voltha Infra and Stack deployments
Change-Id: Iec45b090782eb53bf990f5807d21a46374dddd12
diff --git a/vars/volthaDeploy.groovy b/vars/volthaDeploy.groovy
index 7936e5a..aad754b 100644
--- a/vars/volthaDeploy.groovy
+++ b/vars/volthaDeploy.groovy
@@ -19,6 +19,8 @@
localCharts: false, // wether to use locally cloned charts or upstream one (for local we assume they are stored in $WORKSPACE/voltha-helm-charts)
dockerRegistry: "", // use a different docker registry for all images, eg: "mirror.registry.opennetworking.org"
kubeconfig: null, // location of the kubernetes config file, if null we assume it's stored in the $KUBECONFIG environment variable
+ withVolthaInfra: true,
+ withVolthaStack: true,
]
if (!config) {
@@ -50,7 +52,11 @@
println "Deploying VOLTHA with the following parameters: ${cfg}."
- volthaInfraDeploy(cfg)
+ if (cfg.withVolthaInfra) {
+ volthaInfraDeploy(cfg)
+ }
- volthaStackDeploy(cfg)
+ if (cfg.withVolthaStack) {
+ volthaStackDeploy(cfg)
+ }
}