-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drop staging parameter from push_* methods
we only support pushing to staging now
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} | ||
} | ||
|
||
|
@@ -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) { | ||
|