Whoops, damn escape character

This commit is contained in:
Gabriele C 2018-03-13 12:46:23 +01:00 committed by GitHub
parent d503d2c061
commit 193e93e30a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@ pipeline {
stage ('prepare') {
steps {
env.CI_SKIP = "false"
result = sh (script: "git log -1 | grep '(?s).[CI[-\s]SKIP].*'", returnStatus: true)
result = sh (script: "git log -1 | grep '(?s).[CI[-\\s]SKIP].*'", returnStatus: true)
if (result == 0) {
env.CI_SKIP = "true"
error "'[CI-SKIP]' found in git commit message. Aborting."