Skip to content

Commit

Permalink
rsync foreman and katello to the correct production locations from st…
Browse files Browse the repository at this point in the history
…agingyum
  • Loading branch information
ehelms committed Nov 2, 2023
1 parent e78c7b3 commit 0983d29
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion theforeman.org/pipelines/lib/release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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}", , !keep_old_files, keep_old_files, true)
}

void push_foreman_staging_rpms(repo_type, version, distro) {
Expand Down

0 comments on commit 0983d29

Please sign in to comment.