提交 7a0228dc 编写于 作者: L liuyq-617

update jenkins

上级 7ecc2167
import hudson.model.Result import hudson.model.Result
import hudson.model.*;
import jenkins.model.CauseOfInterruption import jenkins.model.CauseOfInterruption
properties([pipelineTriggers([githubPush()])]) properties([pipelineTriggers([githubPush()])])
node { node {
...@@ -6,6 +7,7 @@ node { ...@@ -6,6 +7,7 @@ node {
} }
def skipbuild=0 def skipbuild=0
def win_stop=0
def abortPreviousBuilds() { def abortPreviousBuilds() {
def currentJobName = env.JOB_NAME def currentJobName = env.JOB_NAME
...@@ -446,8 +448,12 @@ pipeline { ...@@ -446,8 +448,12 @@ pipeline {
agent{label " crashgen "} agent{label " crashgen "}
steps { steps {
pre_test() pre_test()
sleep 600 script{
} while(win_stop == 0){
sleep(1)
}
}
}
} }
stage('test'){ stage('test'){
agent{label "win"} agent{label "win"}
...@@ -457,6 +463,10 @@ pipeline { ...@@ -457,6 +463,10 @@ pipeline {
cd C:\\workspace\\TDinternal\\community\\tests\\pytest cd C:\\workspace\\TDinternal\\community\\tests\\pytest
test-all.bat CrashGen test-all.bat CrashGen
''' '''
script{
win_stop=1
println win_stop
}
} }
} }
......
...@@ -4,7 +4,7 @@ for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) ...@@ -4,7 +4,7 @@ for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1)
for /F "usebackq tokens=*" %%i in (fulltest.bat) do ( for /F "usebackq tokens=*" %%i in (fulltest.bat) do (
echo Processing %%i echo Processing %%i
call %%i ARG1 -w 1 -m %1 > result.txt 2>error.txt call %%i ARG1 -w 1 -m %1 > result.txt 2>error.txt
if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit /b ) else ( call :colorEcho 0a "Success" &echo. ) if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 3 ) else ( call :colorEcho 0a "Success" &echo. )
) )
exit exit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册