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

test[ci skip]

上级 b1b7db97
...@@ -248,5 +248,4 @@ steps: ...@@ -248,5 +248,4 @@ steps:
when: when:
branch: branch:
- develop - develop
- master - master
\ No newline at end of file
\ No newline at end of file
...@@ -113,6 +113,9 @@ pipeline { ...@@ -113,6 +113,9 @@ pipeline {
agent{label 'master'} agent{label 'master'}
when { when {
changeRequest() changeRequest()
not {
changelog '.*\\[ci skip\\].*'
}
} }
steps { steps {
script{ script{
...@@ -146,19 +149,8 @@ pipeline { ...@@ -146,19 +149,8 @@ pipeline {
script{ script{
env.skipstage=sh(script:"cd ${WORKSPACE}.tes && git --no-pager diff --name-only FETCH_HEAD ${env.CHANGE_TARGET}|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh' || echo 0 ",returnStdout:true) env.skipstage=sh(script:"cd ${WORKSPACE}.tes && git --no-pager diff --name-only FETCH_HEAD ${env.CHANGE_TARGET}|grep -v -E '.*md|//src//connector|Jenkinsfile|test-all.sh' || echo 0 ",returnStdout:true)
if(env.skipstage == 0 )
{
println env.skipstage
currentBuild.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) == 1) {
currentBuild.result = 'SUCCESS'
currentBuild.getRawBuild().getExecutor().interrupt(Result.SUCCESS)
}
} }
println env.skipstage println env.skipstage
sh''' sh'''
rm -rf ${WORKSPACE}.tes rm -rf ${WORKSPACE}.tes
''' '''
...@@ -172,6 +164,9 @@ pipeline { ...@@ -172,6 +164,9 @@ pipeline {
expression { expression {
env.skipstage != 0 env.skipstage != 0
} }
not {
changelog '.*\\[ci skip\\].*'
}
} }
parallel { parallel {
stage('python_1_s1') { stage('python_1_s1') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册