[VOL-2510] Change to jenkins pipeline to fix config change on the OLT
Change-Id: I8d021b5c2d40651bfcafe4113c2cafa0c82fa0a6
diff --git a/Jenkinsfile-voltha-bal31-build b/Jenkinsfile-voltha-bal31-build
index d8586b1..34a8196 100644
--- a/Jenkinsfile-voltha-bal31-build
+++ b/Jenkinsfile-voltha-bal31-build
@@ -112,7 +112,9 @@
waitUntil {
olt_sw_present = sh returnStdout: true, script: """
sshpass -p ${deployment_config.olts[i].pass} ssh -l ${deployment_config.olts[i].user} ${deployment_config.olts[i].ip} 'dpkg --list | grep asfvolt16 | wc -l'
- sshpass -p ${deployment_config.olts[i].pass} ssh -l ${deployment_config.olts[i].user} ${deployment_config.olts[i].ip} 'echo "port ce128 sp=40000" >> /broadcom/qax.soc'
+ if ( ${deployment_config.olts[i].fortygig} ); then
+ sshpass -p ${deployment_config.olts[i].pass} ssh -l ${deployment_config.olts[i].user} ${deployment_config.olts[i].ip} 'echo "port ce128 sp=40000" >> /broadcom/qax.soc'
+ fi
"""
return olt_sw_present.toInteger() == 1
}