提交 985d95a5 编写于 作者: L liuyq-617

[TD-3671]<test>change target branch

上级 20ef6c39
......@@ -50,7 +50,16 @@ def pre_test(){
git clean -dfx
cd ${WK}
git reset --hard HEAD~10
git checkout develop
'''
script {
if (env.CHANGE_TARGET == 'master') {
sh 'git checkout master'
}
else {
sh 'git checkout develop'
}
}
sh '''
git pull >/dev/null
cd ${WK}
export TZ=Asia/Harbin
......@@ -92,7 +101,8 @@ pipeline {
git pull
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD
'''
'''
script{
env.skipstage=sh(script:"cd ${WORKSPACE}.tes && git --no-pager diff --name-only FETCH_HEAD develop|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh' || echo 0 ",returnStdout:true)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册