Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test more
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
peterzhuamazon committed Aug 21, 2024

Verified

This commit was signed with the committer’s verified signature.
peterzhuamazon Peter Zhu
1 parent 1321d38 commit 7f40632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vars/publishIntegTestResults.groovy
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f40632

Please sign in to comment.