Skip to content

Commit

Permalink
build base images periodically for test assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
joepvd committed Nov 17, 2024
1 parent 73b881a commit 0082fe0
Showing 1 changed file with 17 additions and 1 deletion.
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

0 comments on commit 0082fe0

Please sign in to comment.