Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-7 control latest version for ami upgrade matrix #2858

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pmm/pmm2-ami-upgrade-tests-matrix.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ String enableTestingRepo
String pmmServerLatestVersion
List amiVersions = pmmVersion('ami').keySet() as List
List versions = amiVersions[-5..-1]
def latestVersion = pmmVersion()
def parallelStagesMatrix = versions.collectEntries {String it ->
// Skip versions "2.40.1" and "2.42.0"
if (it == "2.40.1" || it == "2.42.0") {
return [:]
}
if ("${params.UPGRADE_TO}" == "dev-latest") {
enableTestingRepo = 'no'
pmmServerLatestVersion = pmmVersion()
} else {
enableTestingRepo = 'yes'
pmmServerLatestVersion = pmmVersion('rc')
}
pmmServerLatestVersion = params.PMM_SERVER_LATEST
["${it} -> ${pmmServerLatestVersion}" : generateStage(it, pmmServerLatestVersion, enableTestingRepo)]
}

Expand All @@ -54,6 +54,10 @@ pipeline {
defaultValue: 'main',
description: 'Tag/Branch for pmm-qa repository',
name: 'PMM_QA_BRANCH')
string(
defaultValue: latestVersion,
description: 'latest PMM Server Version',
name: 'PMM_SERVER_LATEST')
choice(
choices: ['dev-latest', 'release candidate'],
description: 'Upgrade to:',
Expand Down