summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2018-03-22 10:03:17 +0800
committerQiLiang <liangqi1@huawei.com>2018-03-22 10:10:52 +0800
commit37d1f77bd177b6087372dbdcc3ca626c351c883b (patch)
tree1ad361d39fbe0d1052e5cd11008e0bde8b8d9f6c
parent70cc9a0e7088087acdefa7e30eabfc4c53422a20 (diff)
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 <liangqi1@huawei.com>
-rwxr-xr-xci/deploy.sh4
1 files changed, 3 insertions, 1 deletions
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."