Commit 8bf57c6e authored by Afonso Mukai's avatar Afonso Mukai

Define variable

parent b416d32b
......@@ -124,12 +124,12 @@ class PipelineBuilder implements Serializable {
*
*/
def abortBuildOnMagicCommitMessage() {
result = script.sh(
def r = script.sh(
script: "git log -1 | grep '\\[ci skip\\]'",
returnStatus: true
)
if (result == 0) {
if (r == 0) {
script.echo "Ignoring this build because of commit message"
script.currentBuild.result = 'ABORTED'
script.error('Build skipped')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment