[VOL-4310] Extending build pipeline to inclue custom aapters, sample adtran
Change-Id: Ica1fe382f7e5e9d5fbb0b473c37599ffcc986580
diff --git a/jjb/pipeline/voltha/master/physical-build.groovy b/jjb/pipeline/voltha/master/physical-build.groovy
index f5a7d74..11e3e9e 100644
--- a/jjb/pipeline/voltha/master/physical-build.groovy
+++ b/jjb/pipeline/voltha/master/physical-build.groovy
@@ -25,6 +25,12 @@
def infraNamespace = "infra"
def volthaNamespace = "voltha"
+def deploy_custom_oltAdapterChart(namespace, name, chart, extraHelmFlags) {
+ sh """
+ helm install --create-namespace --set defaults.image_pullPolicy=Always --namespace ${namespace} ${extraHelmFlags} ${name} ${chart}
+ """
+}
+
pipeline {
/* no label, executor is determined by JJB */
@@ -121,6 +127,10 @@
// adding user specified helm flags at the end so they'll have priority over everything else
localHelmFlags = localHelmFlags + " ${extraHelmFlags}"
+ if(openoltAdapterChart != "") {
+ localHelmFlags = localHelmFlags + " --set voltha-adapter-openolt.enabled=false"
+ }
+
volthaDeploy([
workflow: workFlow.toLowerCase(),
extraHelmFlags: localHelmFlags,
@@ -132,6 +142,10 @@
etcdReplica: params.NumOfEtcd,
bbsimReplica: bbsimReplicas.toInteger(),
])
+
+ if(openoltAdapterChart != ""){
+ deploy_custom_oltAdapterChart(volthaNamespace, oltAdapterReleaseName, openoltAdapterChart, extraHelmFlags)
+ }
}
sh """
JENKINS_NODE_COOKIE="dontKillMe" _TAG="voltha-api" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${volthaNamespace} svc/voltha-voltha-api 55555:55555; done"&
diff --git a/jjb/pipeline/voltha/voltha-2.8/physical-build.groovy b/jjb/pipeline/voltha/voltha-2.8/physical-build.groovy
index 5244628..fb860ea 100644
--- a/jjb/pipeline/voltha/voltha-2.8/physical-build.groovy
+++ b/jjb/pipeline/voltha/voltha-2.8/physical-build.groovy
@@ -25,6 +25,12 @@
def infraNamespace = "infra"
def volthaNamespace = "voltha"
+def deploy_custom_oltAdapterChart(namespace, name, chart, extraHelmFlags) {
+ sh """
+ helm install --create-namespace --set defaults.image_pullPolicy=Always --namespace ${namespace} ${extraHelmFlags} ${name} ${chart}
+ """
+}
+
pipeline {
/* no label, executor is determined by JJB */
@@ -121,6 +127,10 @@
// adding user specified helm flags at the end so they'll have priority over everything else
localHelmFlags = localHelmFlags + " ${extraHelmFlags}"
+ if(openoltAdapterChart != "") {
+ localHelmFlags = localHelmFlags + " --set voltha-adapter-openolt.enabled=false"
+ }
+
volthaDeploy([
workflow: workFlow.toLowerCase(),
extraHelmFlags: localHelmFlags,
@@ -132,6 +142,10 @@
etcdReplica: params.NumOfEtcd,
bbsimReplica: bbsimReplicas.toInteger(),
])
+
+ if(openoltAdapterChart != ""){
+ deploy_custom_oltAdapterChart(volthaNamespace, oltAdapterReleaseName, openoltAdapterChart, extraHelmFlags)
+ }
}
sh """
JENKINS_NODE_COOKIE="dontKillMe" _TAG="voltha-api" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${volthaNamespace} svc/voltha-voltha-api 55555:55555; done"&