Skip to content

Commit

Permalink
drop staging parameter from push_* methods
Browse files Browse the repository at this point in the history
we only support pushing to staging now
  • Loading branch information
evgeni committed May 2, 2024
1 parent 317f863 commit 576898d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions theforeman.org/pipelines/lib/release.groovy
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
void push_rpms(repo_src, repo_dest, version, distro, keep_old_files = false, staging = false) {
push_rpms_direct("${repo_src}/${distro}", "${repo_dest}/${version}/${distro}", !keep_old_files, keep_old_files, staging)
void push_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)
}

void push_rpms_direct(repo_source, repo_dest, overwrite = true, merge = false, staging = false) {
void push_rpms_direct(repo_source, repo_dest, overwrite = true, merge = false) {
sshagent(['repo-sync']) {
sh "ssh [email protected] ${repo_source} ${repo_dest} ${overwrite} ${merge} ${staging}"
sh "ssh [email protected] ${repo_source} ${repo_dest} ${overwrite} ${merge}"
}
}

Expand All @@ -23,7 +23,7 @@ void push_staging_rpms(repo_src, repo_dest, version, distro, keep_old_files = fa
destination = "${repo_dest}/${version}/${distro}"
}

push_rpms_direct("${repo_src}/${distro}", destination, !keep_old_files, keep_old_files, true)
push_rpms_direct("${repo_src}/${distro}", destination, !keep_old_files, keep_old_files)
}

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

0 comments on commit 576898d

Please sign in to comment.