fix: copy taos.dll to system32

This commit is contained in:
tangfangzhi 2022-06-02 13:55:14 +08:00
parent 362db1d0c1
commit 53f53fe9c9
1 changed files with 26 additions and 18 deletions

View File

@ -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() {
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 {
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 {
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 {
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)