forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the rpm-validation job to leagcy dir
Signed-off-by: Divya Madala <[email protected]>
- Loading branch information
Showing
1 changed file
with
69 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
lib = library(identifier: '[email protected]', retriever: modernSCM([ | ||
$class: 'GitSCMSource', | ||
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git', | ||
])) | ||
|
||
pipeline { | ||
agent none | ||
options { | ||
timeout(time: 30, unit: 'MINUTES') | ||
} | ||
parameters { | ||
string( | ||
name: 'BUNDLE_MANIFEST_URL', | ||
description: 'The bundle manifest url, required for yum staging repo file. (e.g. https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0-rc1/2493/linux/x64/rpm/dist/opensearch/manifest.yml)', | ||
trim: true | ||
) | ||
string( | ||
name: 'AGENT_LABEL', | ||
description: 'The agent label where the tests should be executed, e.g. Jenkins-Agent-AL2023-X64-C54xlarge-Docker-Host or Jenkins-Agent-AL2023-Arm64-C6g4xlarge-Docker-Host', | ||
trim: true | ||
) | ||
|
||
} | ||
|
||
stages { | ||
stage('RPM distribution validation starts:') { | ||
agent { | ||
docker { | ||
label AGENT_LABEL | ||
image 'opensearchstaging/ci-runner:ci-runner-almalinux8-systemd-base-integtest-v1' | ||
args '--entrypoint=/usr/lib/systemd/systemd -u root --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host' | ||
registryUrl 'https://public.ecr.aws/' | ||
alwaysPull true | ||
} | ||
} | ||
steps { | ||
script { | ||
currentBuild.description = BUNDLE_MANIFEST_URL | ||
rpmDistValidation( | ||
bundleManifestURL: "$BUNDLE_MANIFEST_URL" | ||
) | ||
} | ||
} | ||
post { | ||
always { | ||
sh "rm -rf $WORKSPACE/*" | ||
postCleanup() | ||
} | ||
} | ||
} | ||
} | ||
post() { | ||
success { | ||
echo "Validation for the RPM distribution has been completed successfully." | ||
} | ||
failure { | ||
echo "Validation for RPM distribution failed." | ||
} | ||
} | ||
} |