[VOL-3820] DMI tests HW pipeline
Change-Id: Id7daa37de57b3522a0be20bc6df266788cb10bf9
diff --git a/jjb/pipeline/voltha/master/dmi-build-and-test.groovy b/jjb/pipeline/voltha/master/dmi-build-and-test.groovy
index a0fb12e..aa74c4d 100755
--- a/jjb/pipeline/voltha/master/dmi-build-and-test.groovy
+++ b/jjb/pipeline/voltha/master/dmi-build-and-test.groovy
@@ -93,6 +93,11 @@
}
}
stage('Install Voltha') {
+ when {
+ expression {
+ return installVoltha.toBoolean()
+ }
+ }
steps {
timeout(20) {
installVoltctl("${branch}")
@@ -186,7 +191,7 @@
done
"""
sh """
- JENKINS_NODE_COOKIE="dontKillMe" _TAG="${params.OltDevMgr}" bash -c "while true; do kubectl port-forward --address 0.0.0.0 svc/${params.OltDevMgr} 50051:10000; done"&
+ JENKINS_NODE_COOKIE="dontKillMe" _TAG="${params.OltDevMgr}" bash -c "while true; do kubectl port-forward --address 0.0.0.0 svc/${params.OltDevMgr} 50051; done"&
ps aux | grep port-forward
"""
}
@@ -308,6 +313,7 @@
post {
always {
+ getPodsInfo("$WORKSPACE")
sh '''
# stop the kail processes
list=($APPS_TO_LOG)
diff --git a/jjb/voltha-test/voltha-nightly-jobs.yaml b/jjb/voltha-test/voltha-nightly-jobs.yaml
index 7b00b24..0d07a91 100644
--- a/jjb/voltha-test/voltha-nightly-jobs.yaml
+++ b/jjb/voltha-test/voltha-nightly-jobs.yaml
@@ -694,6 +694,7 @@
<<: *voltha-pipe-job-boiler-plate
# default values
pipeline-script: 'voltha/master/dmi-build-and-test.groovy'
+ installVoltha: true
VolthaEtcdPort: 2379
num-of-openonu: 1
num-of-onos: 3
@@ -785,6 +786,11 @@
default: '{work-flow}'
description: 'Installs and uses the specified work flow on the POD'
+ - bool:
+ name: installVoltha
+ default: '{installVoltha}'
+ description: "Whether to install VOLTHA"
+
- string:
name: extraHelmFlags
default: '{extraHelmFlags}'
diff --git a/jjb/voltha-test/voltha.yaml b/jjb/voltha-test/voltha.yaml
index ab66f39..6350845 100644
--- a/jjb/voltha-test/voltha.yaml
+++ b/jjb/voltha-test/voltha.yaml
@@ -578,10 +578,12 @@
- 'verify_voltha_pod_dmi_test':
build-node: 'dt-berlin-community-pod'
config-pod: 'dt-berlin-pod-gpon-adtran'
+ name-extension: '_DT'
work-flow: 'DT'
release: 'master'
branch: 'master'
profile: 'Default'
+ installVoltha: false
reinstall-olt: false
restart-olt: false
extraHelmFlags: " -f /home/community/SDX_Device_Manager_21.4/helm/values-onf.yaml "