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']}",