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

test[ci skip]

上级 b1b7db97
......@@ -248,5 +248,4 @@ steps:
when:
branch:
- develop
- master
\ No newline at end of file
- master
\ No newline at end of file
......@@ -113,6 +113,9 @@ pipeline {
agent{label 'master'}
when {
changeRequest()
not {
changelog '.*\\[ci skip\\].*'
}
}
steps {
script{
......@@ -146,19 +149,8 @@ pipeline {
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)
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
sh'''
rm -rf ${WORKSPACE}.tes
'''
......@@ -172,6 +164,9 @@ pipeline {
expression {
env.skipstage != 0
}
not {
changelog '.*\\[ci skip\\].*'
}
}
parallel {
stage('python_1_s1') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册