diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2018-07-20 12:17:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 12:17:47 -0400 |
commit | 3fa0e0ad33b1af445e55081496fb09b5298c9411 (patch) | |
tree | 51b004396863a9121488cbd3ac326548ec23b221 | |
parent | f8db71695960795fa77ff45051df604d64ca2b1b (diff) | |
download | jscu_refactor-3fa0e0ad33b1af445e55081496fb09b5298c9411.tar.gz |
Explicit string comparison since bools often don't behave like bools. (#11)
-rw-r--r-- | vars/utils.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index ed1716c..2440e45 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -16,7 +16,7 @@ def scm_checkout(skip_disable=false) { node("on-master") { stage("Setup") { checkout(scm) - if (!skip_disable) { + if (skip_disable == 'true') { // Obtain the last commit message and examine it for skip directives. logoutput = sh(script:"git log -1 --pretty=%B", returnStdout: true).trim() if (logoutput.contains("[ci skip]") || logoutput.contains("[skip ci]")) { |