Revert "Increase waitTimer for OLT to be up in case of in-band mode to 540s"
This reverts commit 8ba5ebe76083803187c0f7dbc4b969aa90f236ff.
Reason for revert: Error during build - "sleep: invalid time interval ‘waitTimerForOltUp’"
Change-Id: I425580b6d047d90534ebba0efe9902dc748f5264
diff --git a/Jenkinsfile-voltha-build b/Jenkinsfile-voltha-build
index 768b01d..24d6d14 100644
--- a/Jenkinsfile-voltha-build
+++ b/Jenkinsfile-voltha-build
@@ -338,15 +338,11 @@
}
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 waitTimerForOltUp
+ sleep 360
"""
}
timeout(15) {