From b3a06f88e93a1b37ffe7f70f8f9e3358142dca0a Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Fri, 30 Jun 2017 14:45:35 -0400 Subject: Improved granularity and ratcheting of status values from build jobs --- jenkins/dispatch.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jenkins/dispatch.groovy') 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 } } -- cgit