From f68215fa833ae8b367ed68de3c81b0691c09e71a Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Fri, 8 Feb 2019 15:19:29 -0500 Subject: Post-process test report file to prepend build config name to test names (#31) * Add build config name as prefix to test names in report. * Add braces for better readability --- vars/utils.groovy | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vars/utils.groovy') diff --git a/vars/utils.groovy b/vars/utils.groovy index a159145..e1fa458 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -259,6 +259,11 @@ def processTestReport(config, index) { "skippedUnstableThresh: ${config.skippedUnstableThresh}\n" + "skippedFailureThresh: ${config.skippedFailureThresh}" println(thresh_summary) + + // Process the XML results file to include the build config name as a prefix + // on each test name to make it more obvious from where each result originates. + sh(script:"sed -i 's/ name=\"/ name=\"[${config.name}] /g' *.xml") + if (report_exists == 0) { step([$class: 'XUnitBuilder', thresholds: [ -- cgit