fix: Jenkins syntax error

This commit is contained in:
tangfangzhi 2022-06-01 15:02:21 +08:00
parent 64879c45e2
commit 4adfb46672
1 changed files with 7 additions and 9 deletions

View File

@ -287,8 +287,10 @@ pipeline {
pre_test_win() pre_test_win()
pre_test_build_win() pre_test_build_win()
run_win_ctest() run_win_ctest()
while(linux_ready == 0) { script {
sleep(8) while(linux_ready == 0) {
sleep(8)
}
} }
run_win_test() run_win_test()
} }
@ -331,19 +333,15 @@ pipeline {
sleep 20 sleep 20
service taosd status service taosd status
''' '''
script { linux_ready = 1
linux_ready = 1
}
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)
}
} }
} }
} }