-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ci-group arg for OSD integ tests
Signed-off-by: Rishabh Singh <[email protected]>
- Loading branch information
1 parent
42c8c5d
commit 7a84c42
Showing
2 changed files
with
56 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
void call(Map args = [:]) { | ||
lib = library(identifier: 'jenkins@main', retriever: legacySCM(scm)) | ||
|
||
unstash "integtest-opensearch-dashboards-${BUILD_NUMBER}" | ||
|
||
if (env.platform == 'windows') { | ||
echo "On Windows Platform, unstash repository and download the artifacts" | ||
echo "Downloading from S3: ${artifactPathOpenSearch}" | ||
downloadFromS3( | ||
assumedRoleName: 'opensearch-bundle', | ||
roleAccountNumberCred: 'jenkins-aws-account-public', | ||
downloadPath: "${artifactPathOpenSearch}/", | ||
bucketName: "${ARTIFACT_BUCKET_NAME}", | ||
localPath: "${WORKSPACE}/artifacts", | ||
force: true | ||
) | ||
sh("cp -a ${WORKSPACE}/artifacts/${artifactPathOpenSearch} ${WORKSPACE}") | ||
|
||
echo "Downloading from S3: ${artifactPath}" | ||
downloadFromS3( | ||
assumedRoleName: 'opensearch-bundle', | ||
roleAccountNumberCred: 'jenkins-aws-account-public', | ||
downloadPath: "${artifactPath}/", | ||
bucketName: "${ARTIFACT_BUCKET_NAME}", | ||
localPath: "${WORKSPACE}/artifacts", | ||
force: true | ||
) | ||
sh("cp -a ${WORKSPACE}/artifacts/${artifactPath} ${WORKSPACE}") | ||
sh("rm -rf ${WORKSPACE}/artifacts") | ||
} | ||
else { | ||
echo "Not on Windows, unstash repository+artifacts" | ||
} | ||
|
||
sh("rm -rf test-results") | ||
runIntegTestScript( | ||
jobName: "${BUILD_JOB_NAME}", | ||
componentName: "${local_component}", | ||
buildManifest: "${BUILD_MANIFEST}", | ||
testManifest: "manifests/${TEST_MANIFEST}", | ||
localPath: "${WORKSPACE}/${distribution}", | ||
switchUserNonRoot: "${switch_user_non_root}", | ||
ciGroup: args.ciGroup | ||
) | ||
} |
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