Skip to content

Commit

Permalink
PSMDB. Change job format and supported OS list for PSMDB PRO tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandraromanchenko committed Feb 3, 2025
1 parent 0a042f3 commit 9e4142c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions psmdb/psmdb-fips.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ library changelog: false, identifier: "lib@master", retriever: modernSCM([
])

def moleculeDir = "psmdb/psmdb"
def fipsOS = ['rhel8-fips','rhel9','ubuntu-focal-pro','ubuntu-jammy-pro']
def fipsOS = ['al2023','rhel8-fips','rhel9','ubuntu-focal-pro','ubuntu-jammy-pro','ubuntu-noble-pro']

pipeline {
agent {
Expand Down Expand Up @@ -33,8 +33,8 @@ pipeline {
name: 'GATED_BUILD',
description: 'Test private repo?',
choices: [
'false',
'true'
'true',
'false'
]
)
string(
Expand Down
22 changes: 13 additions & 9 deletions psmdb/psmdb-tarball-pro-functional.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ library changelog: false, identifier: "lib@master", retriever: modernSCM([
])

def moleculeDir = "psmdb-tarball/psmdb-tarball-pro"
def psmdb_default_os_list = ["rhel8","rhel9","ubuntu-jammy-pro"]
def psmdb_7_os_list = ["rhel8","rhel9","ubuntu-jammy-pro","debian-12"]
def psmdb_default_os_list = ["al2023","rhel8","rhel9","ubuntu-jammy-pro","ubuntu-noble-pro"]
def psmdb_7_os_list = ["al2023","rhel8","rhel9","ubuntu-jammy-pro","ubuntu-noble-pro","debian-12"]

pipeline {
agent {
Expand All @@ -17,9 +17,9 @@ pipeline {
}
parameters {
string(
defaultValue: 'https://url_with_creds_if_needed.ol9.tar.gz',
description: 'URL/S3 link for pro tarball for ol9',
name: 'TARBALL_OL9'
defaultValue: '6.0.20-17',
description: 'PSMDB version for tests',
name: 'PSMDB_VERSION'
)
string(
defaultValue: 'main',
Expand All @@ -35,12 +35,12 @@ pipeline {
steps {
script {
currentBuild.displayName = "${env.BUILD_NUMBER}"
currentBuild.description = "${env.TARBALL_OL9}"
currentBuild.description = "${env.PSMDB_VERSION}"

def versionNumber = TARBALL_OL9 =~ /percona-server-mongodb-pro-(\d+)/
def versionNumber = PSMDB_VERSION =~ /^(\d+)/
def version = versionNumber ? Integer.parseInt(versionNumber[0][1]) : null

if (version == 7) {
if (version > 7) {
psmdb_default_os_list = psmdb_7_os_list
}
}
Expand All @@ -60,10 +60,14 @@ pipeline {
}
}
stage('Test') {
steps {
steps {
withCredentials([usernamePassword(credentialsId: 'PSMDB_PRIVATE_REPO_ACCESS', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) {
script {
moleculeParallelTest(psmdb_default_os_list, moleculeDir)
}
}
}
}
}
post {
always {
Expand Down

0 comments on commit 9e4142c

Please sign in to comment.