This commit is contained in:
liuyq-617 2021-08-11 11:16:24 +08:00
parent 59bb4dfbce
commit 75bc3745ff
2 changed files with 11 additions and 5 deletions

14
Jenkinsfile vendored
View File

@ -135,19 +135,25 @@ pipeline {
rm -rf ${WORKSPACE}.tes
cp -r ${WORKSPACE} ${WORKSPACE}.tes
cd ${WORKSPACE}.tes
git fetch
'''
script {
if (env.CHANGE_TARGET == 'master') {
sh '''
cd ${WK}
git checkout master
git pull origin master
'''
}
else {
else if(env.CHANGE_TARGET == '2.0'){
sh '''
cd ${WK}
git checkout 2.0
'''
}
else{
sh '''
cd ${WK}
git checkout develop
git pull origin develop
'''
}
}

View File

@ -18108,4 +18108,4 @@
fun:_PyEval_EvalFrameDefault
fun:_PyEval_EvalCodeWithName
fun:_PyFunction_Vectorcall
}
}