@@ -26,9 +26,8 @@ void call(Map args = [:]) {
26
26
def isNullOrEmpty = { str ->
27
27
str == null || (str instanceof String && str. trim(). isEmpty())
28
28
}
29
- if (isNullOrEmpty(args. version) || isNullOrEmpty(args. distributionBuildNumber) || isNullOrEmpty(args. distributionBuildUrl) ||
30
- isNullOrEmpty(args. rcNumber) || isNullOrEmpty(args. rc) || isNullOrEmpty(args. platform) ||
31
- isNullOrEmpty(args. architecture) || isNullOrEmpty(args. distribution) || isNullOrEmpty(args. testReportManifestYml) || isNullOrEmpty(args. jobName)) {
29
+ // Check if any args is equals to null or it is a test run
30
+ if (isNullOrEmpty(args. distributionBuildUrl) || isNullOrEmpty(args. testReportManifestYml) || isNullOrEmpty(args. jobName) || args. jobName. equals(' dummy_job' )) {
32
31
return null
33
32
}
34
33
@@ -40,7 +39,6 @@ void call(Map args = [:]) {
40
39
def formattedDate = new SimpleDateFormat (" MM-yyyy" ). format(currentDate)
41
40
def testReportManifestYml = args. testReportManifestYml
42
41
def jobName = args. jobName
43
- def testReportManifestYmlUrl = " https://ci.opensearch.org/ci/dbc/${ jobName} /${ version} /${ distributionBuildNumber} /${ platform} /${ architecture} /${ distribution} /test-results/${ integTestBuildNumber} /integ-test/test-report.yml"
44
42
def manifestFile = readFile testReportManifestYml
45
43
def manifest = readYaml text : manifestFile
46
44
def indexName = " opensearch-integration-test-results-${ formattedDate} "
@@ -52,6 +50,7 @@ void call(Map args = [:]) {
52
50
def platform = manifest. platform
53
51
def architecture = manifest. architecture
54
52
def distribution = manifest. distribution
53
+ def testReportManifestYmlUrl = " https://ci.opensearch.org/ci/dbc/${ jobName} /${ version} /${ distributionBuildNumber} /${ platform} /${ architecture} /${ distribution} /test-results/${ integTestBuildNumber} /integ-test/test-report.yml"
55
54
56
55
manifest. components. each { component ->
57
56
def componentName = component. name
0 commit comments