From 558cdb857eba2d3e8ea424164f37a354b01e5015 Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Tue, 21 Nov 2017 16:40:37 -0500 Subject: Test exception throw, second type --- vars/jfile_utils.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vars/jfile_utils.groovy') diff --git a/vars/jfile_utils.groovy b/vars/jfile_utils.groovy index 14378a0..e17e618 100644 --- a/vars/jfile_utils.groovy +++ b/vars/jfile_utils.groovy @@ -15,11 +15,11 @@ def scm_checkout() { if (logoutput.contains("[ci skip]") || logoutput.contains("[skip ci]")) { skip_job = 1 currentBuild.result = 'SUCCESS' - currentBuild.rawbuild.result = 'SUCCESS' println("\nBuild skipped due to commit message directive.\n") // System.exit(0) // FATAL to Jenkins //return skip_job - throw new hudson.AbortException('Guess what!') + //throw new hudson.AbortException('Guess what!') + throw new java.io.IOException('Guess what!') } stash includes: '**/*', name: 'source_tree' } -- cgit