lib/packaging/rpm/repo.rb in packaging-0.99.0 vs lib/packaging/rpm/repo.rb in packaging-0.99.1

- old
+ new

@@ -12,10 +12,10 @@ if Pkg::Util::File.empty_dir?("pkg/#{target}/rpm") warn "No repo configs have been generated! Try pl:rpm_repo_configs." return end - invoke_task("pl:fetch") + Pkg::Util::RakeUtils.invoke_task("pl:fetch") repo_dir = "#{Pkg::Config.jenkins_repo_path}/#{Pkg::Config.project}/#{Pkg::Config.ref}/#{target}/rpm" Pkg::Util::Net.remote_ssh_cmd(Pkg::Config.distribution_server, "mkdir -p #{repo_dir}") Pkg::Util::Execution.retry_on_fail(:times => 3) do Pkg::Util::Net.rsync_to("pkg/#{target}/rpm/", Pkg::Config.distribution_server, repo_dir) end