fix: dead lock in case of some test failure

This commit is contained in:
tangfangzhi 2022-06-01 15:12:22 +08:00
parent 4adfb46672
commit df1bed48aa
1 changed files with 14 additions and 4 deletions

View File

@ -333,13 +333,25 @@ pipeline {
sleep 20 sleep 20
service taosd status service taosd status
''' '''
}
}
}
script {
linux_ready = 1 linux_ready = 1
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 40, unit: 'MINUTES'){
script {
sh ''' sh '''
cd ${WKC}/tests/parallel_test cd ${WKC}/tests/parallel_test
export DEFAULT_RETRY_TIME=2 export DEFAULT_RETRY_TIME=2
date date
timeout 2100 time ./run.sh -e -m /home/m.json -t /tmp/cases.task -b ${BRANCH_NAME}_${BUILD_ID} -l ${WKDIR}/log -o 480 timeout 2100 time ./run.sh -e -m /home/m.json -t /tmp/cases.task -b ${BRANCH_NAME}_${BUILD_ID} -l ${WKDIR}/log -o 480
''' '''
}
}
}
script {
while(win_test_stage == 0){ while(win_test_stage == 0){
sleep(12) sleep(12)
} }
@ -349,8 +361,6 @@ pipeline {
} }
} }
} }
}
}
post { post {
success { success {
emailext ( emailext (