From 679bbe2d00e31f516fb7a9774aa7706c3886a9dc Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Sun, 6 Oct 2024 17:17:16 -0700 Subject: [PATCH] fix Signed-off-by: Sayali Gaikawad --- vars/updateIntegTestFailureIssues.groovy | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vars/updateIntegTestFailureIssues.groovy b/vars/updateIntegTestFailureIssues.groovy index be978745..418c255d 100644 --- a/vars/updateIntegTestFailureIssues.groovy +++ b/vars/updateIntegTestFailureIssues.groovy @@ -18,7 +18,7 @@ import jenkins.CreateIntegTestMarkDownTable void call(Map args = [:]) { def inputManifest = readYaml(file: args.inputManifestPath) - def version = inputManifest.build.version.toString() + def version = inputManifest.build.version def product = inputManifest.build.name List failedComponents = [] @@ -51,19 +51,19 @@ void call(Map args = [:]) { def totalHits = queryData.hits.hits.collect {it._source} totalHits.each { hit -> def rowData = [ - platform : hit.platform.toString(), - distribution: hit.distribution.toString(), - architecture: hit.architecture.toString(), - test_report_manifest_yml: hit.test_report_manifest_yml.toString(), - integ_test_build_url: hit.integ_test_build_url.toString() + platform : hit.platform, + distribution: hit.distribution, + architecture: hit.architecture, + test_report_manifest_yml: hit.test_report_manifest_yml, + integ_test_build_url: hit.integ_test_build_url ] testData << rowData } - println("Class of testData: ${testData}") + println("Class of testData: ${testData.getClass().getName()}") def markdownContent = new CreateIntegTestMarkDownTable(version, testData).create() println(markdownContent) println("Class of markdownContent: ${markdownContent.getClass().getName()}") - writeFile file: "failedTestDetails.md", text: markdownContent + // writeFile file: "failedTestDetails.md", text: markdownContent println('Wrote file') println('Component Name: '+ component.name) println('Version is '+ version)