diff options
| author | Matt Rendina <mrendina@stsci.edu> | 2017-11-21 16:05:44 -0500 |
|---|---|---|
| committer | Matt Rendina <mrendina@stsci.edu> | 2017-11-21 16:05:44 -0500 |
| commit | 471e12dd251127a15be03e57b8a2d80438dba11c (patch) | |
| tree | fb5c38612b8f17bb69416cfb835547c2009ec0bb | |
| parent | 66734368bdf45af0cb910c7934443d773f34eb20 (diff) | |
| download | jscu_refactor-471e12dd251127a15be03e57b8a2d80438dba11c.tar.gz | |
Test exception throw
| -rw-r--r-- | vars/jfile_utils.groovy | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vars/jfile_utils.groovy b/vars/jfile_utils.groovy index d190739..91e042e 100644 --- a/vars/jfile_utils.groovy +++ b/vars/jfile_utils.groovy @@ -15,14 +15,16 @@ 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) + // System.exit(0) // FATAL to Jenkins //return skip_job + throw new hudson.AbortException('Guess what!') } stash includes: '**/*', name: 'source_tree' } } - //return skip_job + return skip_job } |
