[TD-12798]<CI> add timeout for CI

This commit is contained in:
liuyq-617 2022-01-10 13:23:56 +08:00
parent 0fb5c69ed5
commit 2eb4181654
1 changed files with 11 additions and 9 deletions

20
Jenkinsfile vendored
View File

@ -105,15 +105,17 @@ pipeline {
abort_previous() abort_previous()
abortPreviousBuilds() abortPreviousBuilds()
} }
pre_test() timeout(time: 45, unit: 'MINUTES'){
sh''' pre_test()
cd ${WKC}/tests sh'''
./test-all.sh b1fq cd ${WKC}/tests
''' ./test-all.sh b1fq
sh''' '''
cd ${WKC}/debug sh'''
ctest cd ${WKC}/debug
''' ctest
'''
}
} }
} }
} }