diff --git a/vars/updateIntegTestFailureIssues.groovy b/vars/updateIntegTestFailureIssues.groovy index be978745..418c255d 100644 --- a/vars/updateIntegTestFailureIssues.groovy +++ b/vars/updateIntegTestFailureIssues.groovy @@ -18,7 +18,7 @@ import jenkins.CreateIntegTestMarkDownTable void call(Map args = [:]) { def inputManifest = readYaml(file: args.inputManifestPath) - def version = inputManifest.build.version.toString() + def version = inputManifest.build.version def product = inputManifest.build.name List failedComponents = [] @@ -51,19 +51,19 @@ void call(Map args = [:]) { def totalHits = queryData.hits.hits.collect {it._source} totalHits.each { hit -> def rowData = [ - 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() + 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 ] testData << rowData } - println("Class of testData: ${testData}") + 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: markdownContent + // writeFile file: "failedTestDetails.md", text: markdownContent println('Wrote file') println('Component Name: '+ component.name) println('Version is '+ version)