-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Prudhvi Godithi <[email protected]>
- Loading branch information
1 parent
5124b1a
commit 71f17c7
Showing
10 changed files
with
191 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ | |
* compatible open source license. | ||
*/ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
@@ -72,6 +71,11 @@ pipeline { | |
description: 'If true results will create / update / close github issues', | ||
defaultValue: false | ||
) | ||
string( | ||
name: 'RC_NUMBER', | ||
description: 'If true results will create / update / close github issues', | ||
defaultValue: '0' | ||
) | ||
booleanParam( | ||
name: 'VALIDATE_ARTIFACTS', | ||
description: 'If true the provided artifacts are validated before triggering integ-tests else skip the validation stage', | ||
|
@@ -359,6 +363,22 @@ pipeline { | |
archiveArtifacts artifacts: 'test-report.yml' | ||
} | ||
} | ||
docker.withRegistry('https://public.ecr.aws/') { | ||
docker.image(docker_images["tar"]).inside(docker_args["tar"]) { | ||
def rc = (params.RC_NUMBER.toInteger() > 0) | ||
publishIntegTestResults( | ||
version: env.version, | ||
distributionBuildNumber: env.buildId, | ||
distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/${env.BUILD_JOB_NAME}/detail/${env.BUILD_JOB_NAME}/${env.buildId}/pipeline", | ||
rc: rc, | ||
rcNumber: env.RC_NUMBER, | ||
platform: env.platform, | ||
architecture: env.architecture, | ||
distribution: env.distribution, | ||
testReportManifestYml: "test-report.yml" | ||
) | ||
} | ||
} | ||
} | ||
} | ||
postCleanup() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,13 @@ | |
* compatible open source license. | ||
*/ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
||
def docker_images = [ | ||
'tar': 'opensearchstaging/ci-runner:ci-runner-al2-opensearch-build-v1', | ||
'tar': 'opensearchstaging/ci-runner:ci-runner-al2-opensearch-build-v1', | ||
'rpm': 'opensearchstaging/ci-runner:ci-runner-almalinux8-systemd-base-integtest-v1', | ||
'deb': 'opensearchstaging/ci-runner:ci-runner-ubuntu2004-systemd-base-integtest-v3', | ||
'zip': 'opensearchstaging/ci-runner:ci-runner-windows2019-opensearch-build-v1', | ||
|
@@ -72,6 +71,11 @@ pipeline { | |
description: 'If true results will create / update / close github issues', | ||
defaultValue: false | ||
) | ||
string( | ||
name: 'RC_NUMBER', | ||
description: 'If true results will create / update / close github issues', | ||
defaultValue: '0' | ||
) | ||
booleanParam( | ||
name: 'VALIDATE_ARTIFACTS', | ||
description: 'If true the provided artifacts are validated before triggering integ-tests else skip the validation stage', | ||
|
@@ -147,6 +151,7 @@ pipeline { | |
agent { label AGENT_LABEL } | ||
steps { | ||
script { | ||
echo 'Skip and test the publish integ test results' | ||
downloadBuildManifest( | ||
url: BUILD_MANIFEST_URL, | ||
path: BUILD_MANIFEST | ||
|
@@ -309,6 +314,22 @@ pipeline { | |
echo("Download report manifest from https://ci.opensearch.org/ci/dbc/integ-test/${env.version}/${env.buildId}/${env.platform}/${env.architecture}/${env.distribution}/test-results/${env.BUILD_NUMBER}/integ-test/test-report.yml") | ||
archiveArtifacts artifacts: 'test-report.yml' | ||
} | ||
docker.withRegistry('https://public.ecr.aws/') { | ||
docker.image(docker_images["tar"]).inside(docker_args["tar"]) { | ||
def rc = (params.RC_NUMBER.toInteger() > 0) | ||
publishIntegTestResults( | ||
version: env.version, | ||
distributionBuildNumber: env.buildId, | ||
distributionBuildUrl: "https://build.ci.opensearch.org/blue/organizations/jenkins/${env.BUILD_JOB_NAME}/detail/${env.BUILD_JOB_NAME}/${env.buildId}/pipeline", | ||
rc: rc, | ||
rcNumber: env.RC_NUMBER, | ||
platform: env.platform, | ||
architecture: env.architecture, | ||
distribution: env.distribution, | ||
testReportManifestYml: "test-report.yml" | ||
) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.