Skip to content
Snippets Groups Projects
Commit efa5a910 authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Skip build when commit message contains [web].

parent 632613c5
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env groovy #!/usr/bin/env groovy
@Library('jenkins-pipeline@1.0.19') _ @Library('jenkins-pipeline@1.0.21') _
def stage_required = [build: false, data: false, full: false, docker: false] def stage_required = [build: false, data: false, full: false, docker: false]
def build_shared = 'ON' def build_shared = 'ON'
...@@ -30,7 +30,7 @@ pipeline { ...@@ -30,7 +30,7 @@ pipeline {
sh "git config core.whitespace -blank-at-eof" sh "git config core.whitespace -blank-at-eof"
sh "git diff --check `git merge-base origin/master HEAD` HEAD -- . ':!*.md' ':!*.pandoc' ':!*.asc'" sh "git diff --check `git merge-base origin/master HEAD` HEAD -- . ':!*.md' ':!*.pandoc' ':!*.asc'"
dir('scripts/jenkins') { stash(name: 'known_hosts', includes: 'known_hosts') } dir('scripts/jenkins') { stash(name: 'known_hosts', includes: 'known_hosts') }
ciSkip action: 'check' // Check for [ci skip] commit message. ciSkip action: 'check' // Check for [ci skip] or [web] commit message.
// ********* Check changesets for conditional stage execution ********** // ********* Check changesets for conditional stage execution **********
script { script {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment