From 129479d3d795902e0d3e077d4bd2924abd93e20e Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Sun, 6 Oct 2024 18:02:39 -0700 Subject: [PATCH] fix Signed-off-by: Sayali Gaikawad --- vars/updateIntegTestFailureIssues.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vars/updateIntegTestFailureIssues.groovy b/vars/updateIntegTestFailureIssues.groovy index 1122c363..74520a84 100644 --- a/vars/updateIntegTestFailureIssues.groovy +++ b/vars/updateIntegTestFailureIssues.groovy @@ -48,7 +48,8 @@ void call(Map args = [:]) { println("Integration test failed for ${component.name}, creating github issue") def testData = [] def queryData = componentIntegTestStatus.getComponentIntegTestFailedData(component.name) - def totalHits = queryData.hits.hits.collect {it._source} + def hitsInJSON = readJSON text: "${queryData}" + def totalHits = hitsInJSON.hits.hits.collect {it._source} totalHits.each { hit -> def rowData = [ platform : "${hit['platform']}",