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 6, 2024
1 parent 84c788d commit abe1573
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions vars/updateIntegTestFailureIssues.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -51,30 +51,30 @@ 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
}
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: "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")
Expand Down

0 comments on commit abe1573

Please sign in to comment.