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

[BXMSPROD-2105] parametrize the OpenShift images branch used to build the images in jobs that create templates and sources #1527

Merged
merged 2 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
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 @@ -11,8 +11,9 @@ pipelineJob("${folderPath}/bamoe-create-images-templates-and-sources") {
description('This job creates the Openshift images templates and sources for BAMOE.')

parameters {
stringParam('VERSION', '', ' The milestone version, i.e. 8.0.3')
stringParam('VERSION', '', 'The milestone version, i.e. 8.0.3')
stringParam("PRODUCT_MILESTONE", "CR1")
stringParam('BRANCH', '7.13.x-blue', 'The OpenShift images branch used to build the images')
stringParam('BUILDS', '', 'List of Brew builds IDs separated by comma. Required images are: Business Central, Business Central Monitoring, KIE Server, Controller and Smart Router')
stringParam('OVERRIDING_FILES', 'branch-overrides.yaml', 'Comma separated list of the overriding files that will be fetched from the images repositories')
stringParam('GITHUB_REFERENCE', '', 'Override the GitHub reference for all cloned repositories')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ pipelineJob("${folderPath}/bamoe-kogito-create-images-sources") {
description('This job creates the Openshift sources for BAMOE Kogito.')

parameters {
stringParam('VERSION', '', ' The milestone version, i.e. 1.13.5')
stringParam('VERSION', '', 'The milestone version, i.e. 1.13.5')
stringParam("PRODUCT_MILESTONE", "CR1")
stringParam('BAMOE_VERSION', '', ' The BAMOE version related to the BAMOE Kogito release, i.e. 8.0.3')
stringParam('BAMOE_VERSION', '', 'The BAMOE version related to the BAMOE Kogito release, i.e. 8.0.3')
stringParam('BRANCH', '1.13.x-blue', 'The OpenShift images branch used to build the images')
stringParam('BUILDS', '', 'List of Brew builds IDs separated by comma. Required images are: Kogito Runtime JVM, Kogito Runtime Native and Kogito Builder')
stringParam('OVERRIDING_FILES', 'bamoe-kogito-runtime-jvm-rhel8-overrides.yaml,bamoe-kogito-builder-rhel8-overrides.yaml', 'Comma separated list of the overriding files that will be fetched from the images repositories')
stringParam('GITHUB_REFERENCE', '', 'Override the GitHub reference for all cloned repositories')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ pipelineJob("${folderPath}/create-images-templates-and-sources") {
description('This job creates the Openshift images templates and sources for RHPAM.')

parameters {
stringParam('VERSION', '', ' The milestone version, i.e. 7.12.1')
stringParam('VERSION', '', 'The milestone version, i.e. 7.12.1')
stringParam("PRODUCT_MILESTONE", "CR1")
stringParam('BRANCH', '7.13.x', 'The OpenShift images branch used to build the images')
stringParam('BUILDS', '', 'List of Brew builds IDs separated by comma. Required images are: Business Central, Business Central Monitoring, KIE Server, Controller and Smart Router')
stringParam('OVERRIDING_FILES', 'branch-overrides.yaml', 'Comma separated list of the overriding files that will be fetched from the images repositories')
stringParam('GITHUB_REFERENCE', '', 'Override the GitHub reference for all cloned repositories')
Expand Down
3 changes: 2 additions & 1 deletion job-dsls/jobs/prod/prod_kogito_create_images_sources.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ pipelineJob("${folderPath}/kogito-create-images-sources") {
description('This job creates the Openshift sources for Kogito.')

parameters {
stringParam('VERSION', '', ' The milestone version, i.e. 1.13.1')
stringParam('VERSION', '', 'The milestone version, i.e. 1.13.1')
stringParam("PRODUCT_MILESTONE", "CR1")
stringParam('BRANCH', '1.13.x', 'The OpenShift images branch used to build the images')
lampajr marked this conversation as resolved.
Show resolved Hide resolved
stringParam('BUILDS', '', 'List of Brew builds IDs separated by comma. Required images are: Kogito Runtime JVM, Kogito Runtime Native and Kogito Builder')
stringParam('OVERRIDING_FILES', 'rhpam-kogito-runtime-jvm-rhel8-overrides.yaml,rhpam-kogito-builder-rhel8-overrides.yaml', 'Comma separated list of the overriding files that will be fetched from the images repositories')
stringParam('GITHUB_REFERENCE', '', 'Override the GitHub reference for all cloned repositories')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pipeline {
steps {
println "[INFO] VERSION: ${VERSION}"
println "[INFO] PRODUCT_MILESTONE: ${PRODUCT_MILESTONE}"
println "[INFO] BRANCH: ${BRANCH}"
println "[INFO] BUILDS: ${BUILDS}"
println "[INFO] OVERRIDING_FILES: ${OVERRIDING_FILES}"
println "[INFO] GITHUB_REFERENCE: ${GITHUB_REFERENCE}"
Expand All @@ -34,7 +35,7 @@ pipeline {
script {
dir('bxms-tooling/release_scripts') {
def OPTIONAL_PARAMS = GITHUB_REFERENCE != "" ? "--cref ${GITHUB_REFERENCE}" : ''
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product rhpam --builds ${BUILDS} --version ${VERSION} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product rhpam --builds ${BUILDS} --version ${VERSION} --branch ${BRANCH} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pipeline {
println "[INFO] VERSION: ${VERSION}"
println "[INFO] PRODUCT_MILESTONE: ${PRODUCT_MILESTONE}"
println "[INFO] BAMOE_VERSION: ${BAMOE_VERSION}"
println "[INFO] BRANCH: ${BRANCH}"
println "[INFO] BUILDS: ${BUILDS}"
println "[INFO] OVERRIDING_FILES: ${OVERRIDING_FILES}"
println "[INFO] GITHUB_REFERENCE: ${GITHUB_REFERENCE}"
Expand All @@ -35,7 +36,7 @@ pipeline {
script {
dir('bxms-tooling/release_scripts') {
def OPTIONAL_PARAMS = GITHUB_REFERENCE != "" ? "--cref ${GITHUB_REFERENCE}" : ''
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product kogito --builds ${BUILDS} --version ${VERSION} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product kogito --builds ${BUILDS} --version ${VERSION} --branch ${BRANCH} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pipeline {
steps {
println "[INFO] VERSION: ${VERSION}"
println "[INFO] PRODUCT_MILESTONE: ${PRODUCT_MILESTONE}"
println "[INFO] BRANCH: ${BRANCH}"
println "[INFO] BUILDS: ${BUILDS}"
println "[INFO] OVERRIDING_FILES: ${OVERRIDING_FILES}"
println "[INFO] GITHUB_REFERENCE: ${GITHUB_REFERENCE}"
Expand All @@ -34,7 +35,7 @@ pipeline {
script {
dir('bxms-tooling/release_scripts') {
def OPTIONAL_PARAMS = GITHUB_REFERENCE != "" ? "--cref ${GITHUB_REFERENCE}" : ''
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product rhpam --builds ${BUILDS} --version ${VERSION} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product rhpam --builds ${BUILDS} --version ${VERSION} --branch ${BRANCH} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pipeline {
steps {
println "[INFO] VERSION: ${VERSION}"
println "[INFO] PRODUCT_MILESTONE: ${PRODUCT_MILESTONE}"
println "[INFO] BRANCH: ${BRANCH}"
println "[INFO] BUILDS: ${BUILDS}"
println "[INFO] OVERRIDING_FILES: ${OVERRIDING_FILES}"
println "[INFO] GITHUB_REFERENCE: ${GITHUB_REFERENCE}"
Expand All @@ -34,7 +35,7 @@ pipeline {
script {
dir('bxms-tooling/release_scripts') {
def OPTIONAL_PARAMS = GITHUB_REFERENCE != "" ? "--cref ${GITHUB_REFERENCE}" : ''
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product kogito --builds ${BUILDS} --version ${VERSION} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
util.runWithPythonVirtualEnv("python3 GenerateOpenshiftSrc.py --product kogito --builds ${BUILDS} --version ${VERSION} --branch ${BRANCH} --of ${OVERRIDING_FILES} ${OPTIONAL_PARAMS}", 'rhba-prod')
}
}
}
Expand Down