From 957461280d8d461d61076a965a1acbf0abe5f22f Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Thu, 2 Nov 2023 11:21:49 -0400 Subject: [PATCH] rsync foreman and katello to the correct production locations from stagingyum --- theforeman.org/pipelines/lib/release.groovy | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/theforeman.org/pipelines/lib/release.groovy b/theforeman.org/pipelines/lib/release.groovy index bd2eb7e6..24e0834a 100644 --- a/theforeman.org/pipelines/lib/release.groovy +++ b/theforeman.org/pipelines/lib/release.groovy @@ -42,7 +42,17 @@ void mash(collection, version) { } void push_staging_rpms(repo_src, repo_dest, version, distro, keep_old_files = false) { - push_rpms_direct("${repo_src}/${distro}", "${repo_dest}/${version}/${distro}", !keep_old_files, keep_old_files, true) + if (repo_dest == 'foreman') { + destination = "releases/${version}/${distro}" + } else if (repo_dest == 'katello') { + destination = "katello/${version}/katello/${distro}" + } else if (repo_dest == 'candlepin') { + destination = "katello/${version}/candlepin/${distro}" + } else { + destination = "${repo_dest}/${version}/${distro}" + } + + push_rpms_direct("${repo_src}/${distro}", destination, !keep_old_files, keep_old_files, true) } void push_foreman_staging_rpms(repo_type, version, distro) {