From 0073dc73bc7249e71e40005a7674ee508a0884ab Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Sat, 6 Nov 2021 16:17:06 +0000 Subject: [PATCH] Add a new meta walker and test it --- build/integrity.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/integrity.groovy b/build/integrity.groovy index 739abce..fa7594f 100644 --- a/build/integrity.groovy +++ b/build/integrity.groovy @@ -1,4 +1,5 @@ - +import static groovy.json.JsonOutput.* + def check(buildmeta) { def results = [ 'good': true, @@ -23,7 +24,7 @@ def check(buildmeta) { productcomponents[key][buildstampnumber] += 1 } } - echo productcomponents.toString() + echo prettyPrint(toJson(productcomponents)) for (pc in productcomponents.keySet()) { bsns = productcomponents[pc] if (bsns.size() > 1) {