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

build base images periodically for test assembly #4291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@ node() {

def jobs = [:]

// Define base images we want to keep current
def base_images = [
'4.12': 'openshift-base-nodejs,openshift-base-rhel8,openshift-base-rhel9,openshift-enterprise-base',
'4.13': 'openshift-base-nodejs,openshift-base-rhel9,openshift-base-rhel8,openshift-enterprise-base-rhel9,openshift-enterprise-base',
'4.14': 'openshift-base-rhel9,openshift-base-nodejs,openshift-base-rhel8,openshift-enterprise-base-rhel9,openshift-enterprise-base',
'4.15': 'openshift-base-rhel9,openshift-base-nodejs,openshift-base-rhel8,openshift-enterprise-base-rhel9,openshift-enterprise-base',
'4.16': 'openshift-base-nodejs.rhel9,openshift-base-rhel8,openshift-base-rhel9,openshift-enterprise-base-rhel9,openshift-enterprise-base',
'4.17': 'openshift-base-nodejs.rhel9,openshift-base-rhel8,openshift-base-rhel9,openshift-enterprise-base-rhel9,openshift-enterprise-base',
'4.18': 'openshift-base-nodejs.rhel9,openshift-base-rhel9,openshift-enterprise-base-rhel9',
'4.19': 'openshift-base-nodejs.rhel9,openshift-base-rhel9,openshift-enterprise-base-rhel9',
]

for ( version in commonlib.ocp4Versions ) {
def cv = "${version}" // make sure we use a locally scoped variable
// Fall back to 4.19 if we did not manage the above list
def images = base_images['4.19']
if (cv in base_images) { images = base_images[cv] }

// Trigger ocp4 plashet build for test assembly in ${version}
jobs["plashets-v${version}"] = {
Expand All @@ -20,7 +35,8 @@ node() {
parameters: [
string(name: 'BUILD_VERSION', value: "${cv}"),
booleanParam(name: 'IGNORE_LOCKS', value: true),
string(name: 'BUILD_IMAGES', value: 'none'),
string(name: 'BUILD_IMAGES', value: 'only'),
string(name: 'IMAGES', value: images),
booleanParam(name: 'SKIP_PLASHETS', value: false)
],
propagate: false
Expand Down