Add more difference infrastructure

This commit is contained in:
Dan Hawkins 2019-07-06 10:55:38 +01:00
commit 29b0981c8a

View file

@ -359,10 +359,7 @@ def unticketedreport(String reportsubfolder, unticketed, boolean iscomponent = t
unticketedsorted = unticketed.sort()
echo "unticketed map sorted:\n${unticketedsorted}"
for (anunticketed in unticketedsorted) {
unticketedlist += "${anunticketed.key}\n"
for (unticketedlistcomment in anunticketed.value) {
unticketedlist += "${unticketedlistcomment.key} (${unticketedlistcomment.value})\n"
}
unticketedlist += "${anunticketed.key}\n${anunticketed.value()}"
}
writeFile(file: "unticketedlist.txt", text: unticketedlist)
}
@ -447,7 +444,12 @@ def boolean report(meta, differencerecords, boolean iscomponent = true) {
}
}
if (dr.type == "Unticketed") {
unticketed[dr.comment] = dr
if (!unticketed.containsKey(dr.comment)) {
unticketed[dr.comment] = 1
} else {
unticketed[dr.comment] += 1
}
}
}
}
String reportsubfolder = ""