Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Oct 7, 2024
1 parent 4d83b34 commit d299644
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/jenkins/CreateIntegTestMarkDownTable.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateIntegTestMarkDownTable {
String version
ArrayList<String> tableData

CreateIntegTestMarkDownTable(String version, ArrayList<String> tableData) {
CreateIntegTestMarkDownTable(String version, List<Map<String, Object>> tableData) {
this.version = version
this.tableData = tableData
}
Expand All @@ -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()
}

}

0 comments on commit d299644

Please sign in to comment.