Skip to content

Commit

Permalink
Move the rpm-validation job to leagcy dir
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <[email protected]>
  • Loading branch information
Divyaasm committed Sep 19, 2024
1 parent 97615c2 commit 3ce7fc0
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions jenkins/legacy/rpm-validation.jenkinsfile
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."
}
}
}

0 comments on commit 3ce7fc0

Please sign in to comment.