未验证 提交 70cec08d 编写于 作者: H huili 提交者: GitHub

Merge pull request #5704 from taosdata/fix/jenkins

fix
......@@ -43,7 +43,23 @@ def pre_test(){
killall -9 gdb || echo "no gdb running"
cd ${WKC}
git reset --hard HEAD~10 >/dev/null
'''
script {
if (env.CHANGE_TARGET == 'master') {
sh '''
cd ${WKC}
git checkout master
'''
}
else {
sh '''
cd ${WKC}
git checkout develop
'''
}
}
sh'''
cd ${WKC}
git pull >/dev/null
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
......@@ -53,15 +69,22 @@ def pre_test(){
'''
script {
if (env.CHANGE_TARGET == 'master') {
sh 'git checkout master'
sh '''
cd ${WK}
git checkout master
'''
}
else {
sh 'git checkout develop'
sh '''
cd ${WK}
git checkout develop
'''
}
}
sh '''
git pull >/dev/null
cd ${WK}
git pull >/dev/null
export TZ=Asia/Harbin
date
git clean -dfx
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册