From 37d1f77bd177b6087372dbdcc3ca626c351c883b Mon Sep 17 00:00:00 2001 From: QiLiang Date: Thu, 22 Mar 2018 10:03:17 +0800 Subject: Fix ci deploy hanging issue - add timeout for each scenarios - Issue link: https://build.opnfv.org/ci/view/container4nfv/job/container4nfv-daily-deploy-master/79 Change-Id: I6dfe7b50a6649e25e88dcec5f57ae9a26efe5e52 Signed-off-by: QiLiang --- ci/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/deploy.sh b/ci/deploy.sh index 5efe88b..58f8385 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -26,9 +26,11 @@ SCENARIOS="kubeadm_basic kubeadm_istio " +DEFAULT_TIMEOUT=3600 + for SCENARIO in $SCENARIOS; do START=$(date +%s) - ../src/vagrant/${SCENARIO}/deploy.sh + timeout ${DEFAULT_TIMEOUT} ../src/vagrant/${SCENARIO}/deploy.sh END=$(date +%s) DIFF=$(( $END - $START )) echo "Scenario $SCENARIO tooks $DIFF seconds." -- cgit 1.2.3-korg