test[ci skip]
This commit is contained in:
parent
b1b7db9796
commit
8eb2ec07de
|
@ -248,5 +248,4 @@ steps:
|
|||
when:
|
||||
branch:
|
||||
- develop
|
||||
- master
|
||||
|
||||
- master
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue