From abe15734d0ba6c4f8f0e9766b17667dee8472831 Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Sun, 6 Oct 2024 16:57:09 -0700 Subject: [PATCH] fix Signed-off-by: Sayali Gaikawad --- vars/updateIntegTestFailureIssues.groovy | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/vars/updateIntegTestFailureIssues.groovy b/vars/updateIntegTestFailureIssues.groovy index f85578d1..6a30ce29 100644 --- a/vars/updateIntegTestFailureIssues.groovy +++ b/vars/updateIntegTestFailureIssues.groovy @@ -51,11 +51,11 @@ void call(Map args = [:]) { def totalHits = queryData.hits.hits.collect {it._source} totalHits.each { hit -> def rowData = [ - 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 + 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() ] testData << rowData } @@ -63,18 +63,18 @@ void call(Map args = [:]) { def markdownContent = new CreateIntegTestMarkDownTable(version, testData).create() println(markdownContent) println("Class of markdownContent: ${markdownContent.getClass().getName()}") - // writeFile file: "failedTestDetails.md", text: "Hello World" + writeFile file: "failedTestDetails.md", text: markdownContent println('Wrote file') println('Component Name: '+ component.name) println('Version is '+ version) println('Repo is '+ component.repository) - createGithubIssue( - repoUrl: component.repository, - issueTitle: "[AUTOCUT] Integration Test Failed for ${component.name}-${version}", - issueBody: markdownContent, - label: "autocut,v${version}", - issueEdit: true - ) + // createGithubIssue( + // repoUrl: component.repository, + // issueTitle: "[AUTOCUT] Integration Test Failed for ${component.name}-${version}", + // issueBodyFile: "failedTestDetails.md", + // label: "autocut,v${version}", + // issueEdit: true + // ) } if (passedComponents.contains(component.name) && !failedComponents.contains(component.name)) { println("Integration tests passed for ${component.name}, closing github issue")