未验证 提交 34c2a904 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #7256 from taosdata/test/skipci_master

[TD-5909]test skip ci [ci skip]
......@@ -248,5 +248,4 @@ steps:
when:
branch:
- develop
- master
- master
\ No newline at end of file
......@@ -6,7 +6,7 @@ node {
}
def skipstage=0
def skipbuild=0
def abortPreviousBuilds() {
def currentJobName = env.JOB_NAME
def currentBuildNumber = env.BUILD_NUMBER.toInteger()
......@@ -146,6 +146,7 @@ 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)
env.skipbuild=sh(script: "git log -1 --pretty=%B | fgrep -ie '[skip ci]' -e '[ci skip]'", returnStatus: true)
}
println env.skipstage
sh'''
......@@ -160,6 +161,7 @@ pipeline {
changeRequest()
expression {
env.skipstage != 0
env.skipbuild ==1
}
}
parallel {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册