From 7f4063283b65a75bf78943dbaca11c86970a9121 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 21 Aug 2024 15:40:35 -0400 Subject: [PATCH] test more Signed-off-by: Peter Zhu --- vars/publishIntegTestResults.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vars/publishIntegTestResults.groovy b/vars/publishIntegTestResults.groovy index a4ccb656..6746cc57 100644 --- a/vars/publishIntegTestResults.groovy +++ b/vars/publishIntegTestResults.groovy @@ -26,6 +26,7 @@ void call(Map args = [:]) { def isNullOrEmpty = { str -> str == null || (str instanceof String && str.trim().isEmpty()) } + // The test of opensearch-build repository on jenkinsfile will enforce the call of this if (isNullOrEmpty(args.distributionBuildUrl) || isNullOrEmpty(args.testReportManifestYml) || isNullOrEmpty(args.jobName) || args.jobName.equals('dummy_job')) { return null } @@ -38,7 +39,6 @@ void call(Map args = [:]) { def formattedDate = new SimpleDateFormat("MM-yyyy").format(currentDate) def testReportManifestYml = args.testReportManifestYml def jobName = args.jobName - def testReportManifestYmlUrl = "https://ci.opensearch.org/ci/dbc/${jobName}/${version}/${distributionBuildNumber}/${platform}/${architecture}/${distribution}/test-results/${integTestBuildNumber}/integ-test/test-report.yml" def manifestFile = readFile testReportManifestYml def manifest = readYaml text: manifestFile def indexName = "opensearch-integration-test-results-${formattedDate}" @@ -50,6 +50,7 @@ void call(Map args = [:]) { def platform = manifest.platform def architecture = manifest.architecture def distribution = manifest.distribution + def testReportManifestYmlUrl = "https://ci.opensearch.org/ci/dbc/${jobName}/${version}/${distributionBuildNumber}/${platform}/${architecture}/${distribution}/test-results/${integTestBuildNumber}/integ-test/test-report.yml" manifest.components.each { component -> def componentName = component.name