未验证 提交 d2367337 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #17638 from taosdata/ciframe/td19833

ciframe:modify Jenkinsfile2
...@@ -23,31 +23,31 @@ def sync_source() { ...@@ -23,31 +23,31 @@ def sync_source() {
sh ''' sh '''
cd ${WKC} cd ${WKC}
git clean -fxd git clean -fxd
git checkout master git checkout -f master
''' '''
} else if (env.CHANGE_TARGET == '2.0') { } else if (env.CHANGE_TARGET == '2.0') {
sh ''' sh '''
cd ${WKC} cd ${WKC}
git clean -fxd git clean -fxd
git checkout 2.0 git checkout -f 2.0
''' '''
} else if (env.CHANGE_TARGET == '2.4') { } else if (env.CHANGE_TARGET == '2.4') {
sh ''' sh '''
cd ${WKC} cd ${WKC}
git clean -fxd git clean -fxd
git checkout 2.4 git checkout -f 2.4
''' '''
} else if (env.CHANGE_TARGET == '2.6') { } else if (env.CHANGE_TARGET == '2.6') {
sh ''' sh '''
cd ${WKC} cd ${WKC}
git clean -fxd git clean -fxd
git checkout 2.6 git checkout -f 2.6
''' '''
} else { } else {
sh ''' sh '''
cd ${WKC} cd ${WKC}
git clean -fxd git clean -fxd
git checkout develop git checkout -f develop
''' '''
} }
} }
...@@ -79,7 +79,7 @@ def sync_source() { ...@@ -79,7 +79,7 @@ def sync_source() {
} else if (env.CHANGE_TARGET == '2.6') { } else if (env.CHANGE_TARGET == '2.6') {
sh ''' sh '''
cd ${WK} cd ${WK}
git checkout 2.6 git checkout -f 2.6
''' '''
} else { } else {
sh ''' sh '''
...@@ -194,47 +194,47 @@ def pre_test_win(){ ...@@ -194,47 +194,47 @@ def pre_test_win(){
if (env.CHANGE_TARGET == 'master') { if (env.CHANGE_TARGET == 'master') {
bat ''' bat '''
cd %WIN_INTERNAL_ROOT% cd %WIN_INTERNAL_ROOT%
git checkout master git checkout -f master
''' '''
bat ''' bat '''
cd %WIN_COMMUNITY_ROOT% cd %WIN_COMMUNITY_ROOT%
git checkout master git checkout -f master
''' '''
} else if (env.CHANGE_TARGET == '2.0') { } else if (env.CHANGE_TARGET == '2.0') {
bat ''' bat '''
cd %WIN_INTERNAL_ROOT% cd %WIN_INTERNAL_ROOT%
git checkout 2.0 git checkout -f 2.0
''' '''
bat ''' bat '''
cd %WIN_COMMUNITY_ROOT% cd %WIN_COMMUNITY_ROOT%
git checkout 2.0 git checkout -f 2.0
''' '''
} else if (env.CHANGE_TARGET == '2.4') { } else if (env.CHANGE_TARGET == '2.4') {
bat ''' bat '''
cd %WIN_INTERNAL_ROOT% cd %WIN_INTERNAL_ROOT%
git checkout 2.4 git checkout -f 2.4
''' '''
bat ''' bat '''
cd %WIN_COMMUNITY_ROOT% cd %WIN_COMMUNITY_ROOT%
git checkout 2.4 git checkout -f 2.4
''' '''
} else if (env.CHANGE_TARGET == '2.6') { } else if (env.CHANGE_TARGET == '2.6') {
bat ''' bat '''
cd %WIN_INTERNAL_ROOT% cd %WIN_INTERNAL_ROOT%
git checkout 2.6 git checkout -f 2.6
''' '''
bat ''' bat '''
cd %WIN_COMMUNITY_ROOT% cd %WIN_COMMUNITY_ROOT%
git checkout 2.6 git checkout -f 2.6
''' '''
} else { } else {
bat ''' bat '''
cd %WIN_INTERNAL_ROOT% cd %WIN_INTERNAL_ROOT%
git checkout develop git checkout -f develop
''' '''
bat ''' bat '''
cd %WIN_COMMUNITY_ROOT% cd %WIN_COMMUNITY_ROOT%
git checkout develop git checkout -f develop
''' '''
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册