aboutsummaryrefslogtreecommitdiff
path: root/jenkins/dispatch.groovy
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2017-06-30 14:45:35 -0400
committerMatt Rendina <mrendina@stsci.edu>2017-06-30 14:45:35 -0400
commitb3a06f88e93a1b37ffe7f70f8f9e3358142dca0a (patch)
tree75e19088aa6238a4030e5574a7d47221d1e608a2 /jenkins/dispatch.groovy
parent1144d01490996fa1d02b0546bc9de5109499ab69 (diff)
downloadbuild_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.groovy4
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
}
}