From d299644d30c090349d1d2d4eacf0b0a120955024 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Sun, 6 Oct 2024 17:58:28 -0700 Subject: [PATCH] fix Signed-off-by: Sayali Gaikawad --- src/jenkins/CreateIntegTestMarkDownTable.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jenkins/CreateIntegTestMarkDownTable.groovy b/src/jenkins/CreateIntegTestMarkDownTable.groovy index f1ac98b8..1fa24d59 100644 --- a/src/jenkins/CreateIntegTestMarkDownTable.groovy +++ b/src/jenkins/CreateIntegTestMarkDownTable.groovy @@ -13,7 +13,7 @@ class CreateIntegTestMarkDownTable { String version ArrayList tableData - CreateIntegTestMarkDownTable(String version, ArrayList tableData) { + CreateIntegTestMarkDownTable(String version, List> tableData) { this.version = version this.tableData = tableData } @@ -29,13 +29,14 @@ class CreateIntegTestMarkDownTable { |----------|--------------|--------------|----------------------|--------------| """ def tableRows = this.tableData.collect { row -> - "| ${row['platform']} | ${row['distribution']} | ${row['architecture']} | ${row['test_report_manifest_yml']} | ${row['integ_test_build_url']}" + "| ${row.platform.toString()} | ${row.distribution.toString()} | ${row.architecture.toString()} | ${row.test_report_manifest_yml.toString()} | ${row.integ_test_build_url.toString()}" }.join("\n") def additionalInformation = """ \nCheck out test report manifest linked above for steps to reproduce, cluster and integration test failure logs. For additional information checkout the [wiki](https://github.com/opensearch-project/opensearch-build/wiki/Testing-the-Distribution) and [OpenSearch Metrics Dashboard](https://metrics.opensearch.org/_dashboards/app/dashboards#/view/21aad140-49f6-11ef-bbdd-39a9b324a5aa). """ - return (tableHeader + tableRows.toString() + additionalInformation).toString() + println(tableRows.getClass().getName()) + return (tableHeader + tableRows + additionalInformation).toString() } } \ No newline at end of file