提交 53f53fe9 编写于 作者: T tangfangzhi

fix: copy taos.dll to system32

上级 362db1d0
...@@ -261,6 +261,7 @@ def pre_test_build_win() { ...@@ -261,6 +261,7 @@ def pre_test_build_win() {
bat ''' bat '''
cd C:\\workspace\\%EXECUTOR_NUMBER%\\taos-connector-python cd C:\\workspace\\%EXECUTOR_NUMBER%\\taos-connector-python
python -m pip install . python -m pip install .
xcopy /e/y/i/f C:\\workspace\\%EXECUTOR_NUMBER%\\TDinternal\\debug\\build\\lib\\taos.dll C:\\Windows\\System32
''' '''
return 1 return 1
} }
...@@ -277,6 +278,8 @@ def run_win_test() { ...@@ -277,6 +278,8 @@ def run_win_test() {
echo "LINUX NODE: ${linux_node_ip} - ${linux_node_pass}" echo "LINUX NODE: ${linux_node_ip} - ${linux_node_pass}"
bat ''' bat '''
echo "windows test ..." echo "windows test ..."
cd C:\\workspace\\%EXECUTOR_NUMBER%\\taos-connector-python
python -m pip install .
time /t time /t
cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDinternal\\community\\tests\\system-test cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDinternal\\community\\tests\\system-test
echo "testing ..." echo "testing ..."
...@@ -335,6 +338,25 @@ pipeline { ...@@ -335,6 +338,25 @@ pipeline {
returnStdout: true returnStdout: true
).trim() ).trim()
} }
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 40, unit: 'MINUTES'){
script {
sh '''
date
rm -rf ${WKC}/debug
time ./container_build.sh -w ${WKDIR} -t 8 -e
rm -f /tmp/cases.task
./collect_cases.sh -e
'''
sh '''
cd ${WKC}/tests/parallel_test
export DEFAULT_RETRY_TIME=2
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
'''
}
}
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 15, unit: 'MINUTES'){ timeout(time: 15, unit: 'MINUTES'){
pre_test() pre_test()
...@@ -354,14 +376,12 @@ pipeline { ...@@ -354,14 +376,12 @@ pipeline {
service taosd start service taosd start
sleep 20 sleep 20
service taosd status service taosd status
rm -rf ${WKC}/debug rm -rf ${WK}/debug
mv ${WKC}/debug ${WK}/
''' '''
sh ''' sh '''
cd ${WKC}/tests/parallel_test cd ${WKPY}
date pip3 install .
time ./container_build.sh -w ${WKDIR} -t 8 -e
rm -f /tmp/cases.task
./collect_cases.sh -e
''' '''
} }
} }
...@@ -369,18 +389,6 @@ pipeline { ...@@ -369,18 +389,6 @@ pipeline {
script { script {
linux_ready = 1 linux_ready = 1
} }
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 40, unit: 'MINUTES'){
script {
sh '''
cd ${WKC}/tests/parallel_test
export DEFAULT_RETRY_TIME=2
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
'''
}
}
}
script { script {
while(win_test_stage == 0){ while(win_test_stage == 0){
sleep(12) sleep(12)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册