diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-06-30 14:45:35 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-06-30 14:45:35 -0400 |
commit | b3a06f88e93a1b37ffe7f70f8f9e3358142dca0a (patch) | |
tree | 75e19088aa6238a4030e5574a7d47221d1e608a2 /jenkins/dispatch.groovy | |
parent | 1144d01490996fa1d02b0546bc9de5109499ab69 (diff) | |
download | build_control-b3a06f88e93a1b37ffe7f70f8f9e3358142dca0a.tar.gz |
Improved granularity and ratcheting of status values from build jobs
Diffstat (limited to 'jenkins/dispatch.groovy')
-rw-r--r-- | jenkins/dispatch.groovy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index f3168c6..edd873b 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -222,7 +222,9 @@ node(LABEL) { } // Set overall status to that propagated from individual jobs. // This will be the most severe status encountered in all sub jobs. - currentBuild.result = readFile this.build_status_file + def tmp_status = readFile this.build_status_file + tmp_status = tmp_status.trim() + currentBuild.result = tmp_status } } |