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

test[ci skip]

上级 a533aafd
...@@ -248,4 +248,5 @@ steps: ...@@ -248,4 +248,5 @@ steps:
when: when:
branch: branch:
- develop - develop
- master - master
\ No newline at end of file
\ No newline at end of file
...@@ -142,9 +142,6 @@ pipeline { ...@@ -142,9 +142,6 @@ pipeline {
sh''' sh'''
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
cd ${WORKSPACE}.tes
git --no-pager diff --name-only FETCH_HEAD ${env.CHANGE_TARGET}|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh'
git log -1 --pretty=%B | grep -ie \'\\[skip ci\\]\' -e \'\\[ci skip\\]\'
''' '''
script{ script{
...@@ -155,11 +152,8 @@ pipeline { ...@@ -155,11 +152,8 @@ pipeline {
currentBuild.result = 'SUCCESS' currentBuild.result = 'SUCCESS'
currentBuild.getRawBuild().getExecutor().interrupt(Result.SUCCESS) currentBuild.getRawBuild().getExecutor().interrupt(Result.SUCCESS)
} }
if (sh(script: "git log -1 --pretty=%B | fgrep -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 0) { if (sh(script: "git log -1 --pretty=%B | fgrep -ie '[skip ci]' -e '[ci skip]'", returnStatus: true) == 1) {
currentBuild.result = 'SUCCESS' currentBuild.result = 'SUCCESS'
sh'''
git log -1 --pretty=%B | fgrep -ie '[skip ci]' -e '[ci skip]
'''
currentBuild.getRawBuild().getExecutor().interrupt(Result.SUCCESS) currentBuild.getRawBuild().getExecutor().interrupt(Result.SUCCESS)
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册