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 ffa6f76 commit 5c2ff54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vars/updateIntegTestFailureIssues.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import jenkins.ComponentBuildStatus
import jenkins.ComponentIntegTestStatus
import jenkins.CreateIntegTestMarkDownTable
import groovy.json.JsonOutput
import groovy.json.JsonSlurper

void call(Map args = [:]) {
def inputManifest = readYaml(file: args.inputManifestPath)
Expand Down Expand Up @@ -50,10 +51,10 @@ void call(Map args = [:]) {
def testData = []
def queryData = componentIntegTestStatus.getComponentIntegTestFailedData(component.name)
def queryDataJson = JsonOutput.toJson(queryData)
println(queryDataJson)
println("Query Data: ${queryData.getClass().getName()}")
println("Query Data: ${queryDataJson.getClass().getName()}")
def totalHits = queryDataJson.hits.hits.collect {it._source}
def queryDataMap = new JsonSlurper().parseText(queryDataJson)
println("queryDataMap Data: ${queryDataMap.getClass().getName()}")
def totalHits = queryDataMap.hits.hits.collect {it._source}
println("totalHits Data: ${totalHits.getClass().getName()}")
totalHits.each { hit ->
def rowData = [
Expand Down

0 comments on commit 5c2ff54

Please sign in to comment.