Merge pull request #4943 from taosdata/test/jenkins

[TD-2741][TD-2736]<test>add timeout in jenkins
This commit is contained in:
huili 2021-01-20 11:07:10 +08:00 committed by GitHub
commit 32c39b1006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 23 deletions

9
Jenkinsfile vendored
View File

@ -87,12 +87,15 @@ pipeline {
steps {
pre_test()
timeout(time: 90, unit: 'MINUTES'){
sh '''
cd ${WKC}/tests
find pytest -name '*'sql|xargs rm -rf
./test-all.sh p1
date'''
}
}
}
stage('python_2') {
agent{label 'p2'}
@ -113,6 +116,7 @@ pipeline {
stage('test_b1') {
agent{label 'b1'}
steps {
timeout(time: 90, unit: 'MINUTES'){
pre_test()
sh '''
cd ${WKC}/tests
@ -120,6 +124,7 @@ pipeline {
date'''
}
}
}
stage('test_crash_gen') {
agent{label "b2"}
@ -137,6 +142,7 @@ pipeline {
./handle_crash_gen_val_log.sh
'''
}
timeout(time: 90, unit: 'MINUTES'){
sh '''
date
cd ${WKC}/tests
@ -145,6 +151,7 @@ pipeline {
'''
}
}
}
stage('test_valgrind') {
agent{label "b3"}
@ -158,6 +165,7 @@ pipeline {
./handle_val_log.sh
'''
}
timeout(time: 90, unit: 'MINUTES'){
sh '''
date
cd ${WKC}/tests
@ -165,6 +173,7 @@ pipeline {
date'''
}
}
}
}