未验证 提交 32c39b10 编写于 作者: H huili 提交者: GitHub

Merge pull request #4943 from taosdata/test/jenkins

[TD-2741][TD-2736]<test>add timeout in jenkins
...@@ -87,12 +87,15 @@ pipeline { ...@@ -87,12 +87,15 @@ pipeline {
steps { steps {
pre_test() pre_test()
timeout(time: 90, unit: 'MINUTES'){
sh ''' sh '''
cd ${WKC}/tests cd ${WKC}/tests
find pytest -name '*'sql|xargs rm -rf find pytest -name '*'sql|xargs rm -rf
./test-all.sh p1 ./test-all.sh p1
date''' date'''
} }
}
} }
stage('python_2') { stage('python_2') {
agent{label 'p2'} agent{label 'p2'}
...@@ -113,6 +116,7 @@ pipeline { ...@@ -113,6 +116,7 @@ pipeline {
stage('test_b1') { stage('test_b1') {
agent{label 'b1'} agent{label 'b1'}
steps { steps {
timeout(time: 90, unit: 'MINUTES'){
pre_test() pre_test()
sh ''' sh '''
cd ${WKC}/tests cd ${WKC}/tests
...@@ -120,6 +124,7 @@ pipeline { ...@@ -120,6 +124,7 @@ pipeline {
date''' date'''
} }
} }
}
stage('test_crash_gen') { stage('test_crash_gen') {
agent{label "b2"} agent{label "b2"}
...@@ -137,6 +142,7 @@ pipeline { ...@@ -137,6 +142,7 @@ pipeline {
./handle_crash_gen_val_log.sh ./handle_crash_gen_val_log.sh
''' '''
} }
timeout(time: 90, unit: 'MINUTES'){
sh ''' sh '''
date date
cd ${WKC}/tests cd ${WKC}/tests
...@@ -145,6 +151,7 @@ pipeline { ...@@ -145,6 +151,7 @@ pipeline {
''' '''
} }
} }
}
stage('test_valgrind') { stage('test_valgrind') {
agent{label "b3"} agent{label "b3"}
...@@ -158,6 +165,7 @@ pipeline { ...@@ -158,6 +165,7 @@ pipeline {
./handle_val_log.sh ./handle_val_log.sh
''' '''
} }
timeout(time: 90, unit: 'MINUTES'){
sh ''' sh '''
date date
cd ${WKC}/tests cd ${WKC}/tests
...@@ -165,6 +173,7 @@ pipeline { ...@@ -165,6 +173,7 @@ pipeline {
date''' date'''
} }
} }
}
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册