Skip to content

Commit 62529b8

Browse files
committed
config: add source_config.yumrepos_ref
This allows specifying a different ref than the default when cloning the yumrepos git repo. We're only planning to use this in the hotfix path for RHCOS.
1 parent f77ef4b commit 62529b8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ source_config:
77
ref: release-${STREAM}
88
# OPTIONAL: git repo URL for yumrepos
99
yumrepos: https://gitlab.example.com/sooper/seekret
10+
# OPTIONAL: git repo ref for yumrepos
11+
yumrepos_ref: devel
1012

1113
# OPTIONAL: default artifacts to build per architecture
1214
default_artifacts:

jobs/build.Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ lock(resource: "build-${params.STREAM}") {
140140

141141
stage('Init') {
142142
def yumrepos = pipecfg.source_config.yumrepos ? "--yumrepos ${pipecfg.source_config.yumrepos}" : ""
143+
def yumrepos_ref = pipecfg.source_config.yumrepos_ref ? "--yumrepos-branch ${pipecfg.source_config.yumrepos_ref}" : ""
143144
def variant = stream_info.variant ? "--variant ${stream_info.variant}" : ""
144145
shwrap("""
145-
cosa init --force --branch ${ref} --commit=${src_config_commit} ${yumrepos} ${variant} ${pipecfg.source_config.url}
146+
cosa init --force --branch ${ref} --commit=${src_config_commit} ${yumrepos} ${yumrepos_ref} ${variant} ${pipecfg.source_config.url}
146147
""")
147148

148149
// for now, just use the PVC to keep cache.qcow2 in a stream-specific dir

0 commit comments

Comments
 (0)