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

[Jenkins] Added [ci skip] functionality.

parent cbc21e2c
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env groovy
@Library('jenkins-pipeline@1.0.18') _
@Library('jenkins-pipeline@1.0.19') _
def stage_required = [build: false, data: false, full: false, docker: false]
......@@ -19,6 +19,7 @@ pipeline {
sh "git config core.whitespace -blank-at-eof"
sh "git diff --check `git merge-base origin/master HEAD` HEAD -- . ':!*.md' ':!*.pandoc'"
dir('scripts/jenkins') { stash(name: 'known_hosts', includes: 'known_hosts') }
ciSkip action: 'check' // Check for [ci skip] commit message.
// ********* Check changesets for conditional stage execution **********
script {
......@@ -64,6 +65,8 @@ pipeline {
}
}
}
// Mark build as NOT_BUILT when [ci skip] commit message was found
post { always { ciSkip action: 'postProcess' } }
}
stage('Build') {
parallel {
......
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