提交 84828137 编写于 作者: T tangfangzhi

enh: print git log

上级 e981952d
...@@ -37,6 +37,12 @@ def sync_source() { ...@@ -37,6 +37,12 @@ def sync_source() {
git clean -fxd git clean -fxd
git checkout 2.4 git checkout 2.4
''' '''
} else if (env.CHANGE_TARGET == '2.6') {
sh '''
cd ${WKC}
git clean -fxd
git checkout 2.6
'''
} else { } else {
sh ''' sh '''
cd ${WKC} cd ${WKC}
...@@ -52,6 +58,7 @@ def sync_source() { ...@@ -52,6 +58,7 @@ def sync_source() {
[ -f src/connector/grafanaplugin/README.md ] && rm -f src/connector/grafanaplugin/README.md > /dev/null || echo "failed to remove grafanaplugin README.md" [ -f src/connector/grafanaplugin/README.md ] && rm -f src/connector/grafanaplugin/README.md > /dev/null || echo "failed to remove grafanaplugin README.md"
git pull >/dev/null git pull >/dev/null
git clean -dfx git clean -dfx
git log -5
''' '''
script { script {
if (env.CHANGE_TARGET == 'master') { if (env.CHANGE_TARGET == 'master') {
...@@ -69,6 +76,11 @@ def sync_source() { ...@@ -69,6 +76,11 @@ def sync_source() {
cd ${WK} cd ${WK}
git checkout 2.4 git checkout 2.4
''' '''
} else if (env.CHANGE_TARGET == '2.6') {
sh '''
cd ${WK}
git checkout 2.6
'''
} else { } else {
sh ''' sh '''
cd ${WK} cd ${WK}
...@@ -80,6 +92,7 @@ def sync_source() { ...@@ -80,6 +92,7 @@ def sync_source() {
cd ${WK} cd ${WK}
git pull >/dev/null git pull >/dev/null
git clean -dfx git clean -dfx
git log -5
''' '''
script { script {
if (env.CHANGE_URL =~ /\/TDengine\//) { if (env.CHANGE_URL =~ /\/TDengine\//) {
...@@ -88,6 +101,7 @@ def sync_source() { ...@@ -88,6 +101,7 @@ def sync_source() {
cd ${WKC} cd ${WKC}
git fetch origin +refs/pull/${CHANGE_ID}/merge git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD git checkout -qf FETCH_HEAD
git log -5
''' '''
sh ''' sh '''
cd ${WKC} cd ${WKC}
...@@ -106,6 +120,7 @@ def sync_source() { ...@@ -106,6 +120,7 @@ def sync_source() {
cd ${WK} cd ${WK}
git fetch origin +refs/pull/${CHANGE_ID}/merge git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD git checkout -qf FETCH_HEAD
git log -5
''' '''
sh ''' sh '''
cd ${WKC} cd ${WKC}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册