summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgrogers <[email protected]>2019-06-03 22:42:05 -0400
committertgrogers <[email protected]>2019-06-03 22:42:05 -0400
commit2c5e4b6a8e97a5311f9719dcad19871a71734135 (patch)
tree593c9b3448c407adbc5a011c93ed80353f7efaf7
parent9e471a8b80760bebb557213ec708f418a2b15c8d (diff)
different method to read a file
-rw-r--r--groovy-html.success.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/groovy-html.success.template b/groovy-html.success.template
index ff440af..b0e1f50 100644
--- a/groovy-html.success.template
+++ b/groovy-html.success.template
@@ -61,8 +61,8 @@
def BUILD_NUMBER= build.getEnvVars()["BUILD_NUMBER"];
def BUILD_URL= build.getEnvVars()["BUILD_URL"];
- def CORREL_42 = new File("${Jenkins.instance.getJob('JobName').workspace}/correl.4.2.txt").text
- def CORREL_42 = new File("${Jenkins.instance.getJob('JobName').workspace}/correl.9.1.txt").text
+ def CORREL_42 = readFile("correl.4.2.txt")
+ def CORREL_91 = readFile("correl.9.1.txt")
%>
Statistics changes since last commit:<br>