enable parallel execution of windows build test

This commit is contained in:
tangfangzhi 2022-04-29 09:03:23 +08:00
parent 07adaee189
commit e183db65a3
1 changed files with 9 additions and 9 deletions

View File

@ -100,12 +100,12 @@ def pre_test_win(){
time /t time /t
taskkill /f /t /im python.exe taskkill /f /t /im python.exe
taskkill /f /t /im bash.exe taskkill /f /t /im bash.exe
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
rd /s /Q C:\\workspace\\TDengine\\debug rd /s /Q C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine\\debug
exit 0 exit 0
''' '''
bat ''' bat '''
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
git reset --hard git reset --hard
git fetch || git fetch git fetch || git fetch
git checkout -f git checkout -f
@ -113,28 +113,28 @@ def pre_test_win(){
script { script {
if (env.CHANGE_TARGET == 'master') { if (env.CHANGE_TARGET == 'master') {
bat ''' bat '''
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
git checkout master git checkout master
''' '''
} else if(env.CHANGE_TARGET == '2.0') { } else if(env.CHANGE_TARGET == '2.0') {
bat ''' bat '''
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
git checkout 2.0 git checkout 2.0
''' '''
} else if(env.CHANGE_TARGET == '3.0') { } else if(env.CHANGE_TARGET == '3.0') {
bat ''' bat '''
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
git checkout 3.0 git checkout 3.0
''' '''
} else { } else {
bat ''' bat '''
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
git checkout develop git checkout develop
''' '''
} }
} }
bat ''' bat '''
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
git branch git branch
git pull || git pull git pull || git pull
git fetch origin +refs/pull/%CHANGE_ID%/merge git fetch origin +refs/pull/%CHANGE_ID%/merge
@ -145,7 +145,7 @@ def pre_test_build_win() {
bat ''' bat '''
echo "building ..." echo "building ..."
time /t time /t
cd C:\\workspace\\TDengine cd C:\\workspace\\%EXECUTOR_NUMBER%\\TDengine
mkdir debug mkdir debug
cd debug cd debug
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x64 call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x64