From 2eb4181654cbb5cc8628db9ae84036fded8c9e76 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Mon, 10 Jan 2022 13:23:56 +0800 Subject: [PATCH] [TD-12798] add timeout for CI --- Jenkinsfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 23dc54d963..fc2b3562c1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -105,15 +105,17 @@ pipeline { abort_previous() abortPreviousBuilds() } - pre_test() - sh''' - cd ${WKC}/tests - ./test-all.sh b1fq - ''' - sh''' - cd ${WKC}/debug - ctest - ''' + timeout(time: 45, unit: 'MINUTES'){ + pre_test() + sh''' + cd ${WKC}/tests + ./test-all.sh b1fq + ''' + sh''' + cd ${WKC}/debug + ctest + ''' + } } } } -- GitLab