diff --git a/.drone.yml b/.drone.yml index 318761361ebe0d910dc4658b7663b5f5d1bd13f4..53b4ef738a6d3fdb894ce35d226a4d1916cdc96a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -248,5 +248,4 @@ steps: when: branch: - develop - - master - \ No newline at end of file + - master \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 8102c0e7ba27c700870a4bed879eb82be383d7ca..e023e690d4c155acc265da04a4291671eeec3553 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {