From 12dd90a984b682af3434bafd5daf767981806d07 Mon Sep 17 00:00:00 2001 From: Michael Armijo Date: Mon, 12 Dec 2022 15:21:48 -0500 Subject: [PATCH] jobs/build: add support for variant value in cosa init --- docs/config.yaml | 2 ++ jobs/build-arch.Jenkinsfile | 3 ++- jobs/build.Jenkinsfile | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/config.yaml b/docs/config.yaml index 09fe74db0..0dfb865d3 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -58,6 +58,8 @@ streams: source_config_ref: main # OPTIONAL: implement the yumrepos branch workaround for this stream yumrepos_branch_rhcos_hack: true + # OPTIONAL: override OS variant to use for this stream + variant: rhcos-9.0 stable: type: production # OPTIONAL: override cosa image to use for this stream diff --git a/jobs/build-arch.Jenkinsfile b/jobs/build-arch.Jenkinsfile index 7ee59e1df..e8cc63a05 100644 --- a/jobs/build-arch.Jenkinsfile +++ b/jobs/build-arch.Jenkinsfile @@ -172,8 +172,9 @@ lock(resource: "build-${params.STREAM}-${basearch}") { """) } else { def yumrepos = pipecfg.source_config.yumrepos ? "--yumrepos ${pipecfg.source_config.yumrepos}" : "" + def variant = stream_info.variant ? "--variant ${stream_info.variant}" : "" shwrap(""" - cosa init --force --branch ${ref} --commit=${src_config_commit} ${yumrepos} ${pipecfg.source_config.url} + cosa init --force --branch ${ref} --commit=${src_config_commit} ${yumrepos} ${variant} ${pipecfg.source_config.url} """) } diff --git a/jobs/build.Jenkinsfile b/jobs/build.Jenkinsfile index ab911e3af..10edd5a49 100644 --- a/jobs/build.Jenkinsfile +++ b/jobs/build.Jenkinsfile @@ -156,8 +156,9 @@ lock(resource: "build-${params.STREAM}") { """) } else { def yumrepos = pipecfg.source_config.yumrepos ? "--yumrepos ${pipecfg.source_config.yumrepos}" : "" + def variant = stream_info.variant ? "--variant ${stream_info.variant}" : "" shwrap(""" - cosa init --force --branch ${ref} --commit=${src_config_commit} ${yumrepos} ${pipecfg.source_config.url} + cosa init --force --branch ${ref} --commit=${src_config_commit} ${yumrepos} ${variant} ${pipecfg.source_config.url} """) }