Increase waitTimer for OLT to be up in case of in-band mode to 540s
Change-Id: I648099e7d89f1c3dcdeafeaf82f28be3d2773ab0
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index 24d6d14..6c0ae91 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -338,11 +338,15 @@
}
stage('Restart OLT processes') {
for(int i=0; i < deployment_config.olts.size(); i++) {
+ int waitTimerForOltUp = 360
+ if ( params.inBandManagement ) {
+ waitTimerForOltUp = 540
+ }
timeout(15) {
sh returnStdout: true, script: """
ssh-keyscan -H ${deployment_config.olts[i].sship} >> ~/.ssh/known_hosts
sshpass -p ${deployment_config.olts[i].pass} ssh -l ${deployment_config.olts[i].user} ${deployment_config.olts[i].sship} 'rm -f /var/log/openolt.log; rm -f /var/log/dev_mgmt_daemon.log; rm -f /var/log/openolt_process_watchdog.log; reboot' || true
- sleep 360
+ sleep ${waitTimerForOltUp}
"""
}
timeout(15) {