if @build_pe namespace :pe do desc "Execute remote debian build using default cow on builder and retrieve package" task :deb => ['pl:fetch', 'pl:load_extras'] do ENV['PE_VER'] ||= @pe_version check_var('PE_VER', ENV['PE_VER']) Rake::Task["pl:remote_build"].reenable Rake::Task["pl:remote_build"].invoke(@deb_build_host, 'HEAD', "pe:local_deb PE_VER=#{ENV['PE_VER']}") end desc "Execute remote debian build using ALL cows on builder and retrieve packages" task :deb_all => ['pl:fetch', 'pl:load_extras'] do ENV['PE_VER'] ||= @pe_version check_var('PE_VER', ENV['PE_VER']) Rake::Task["pl:remote_build"].reenable Rake::Task["pl:remote_build"].invoke(@deb_build_host, 'HEAD', "pe:local_deb_all PE_VER=#{ENV['PE_VER']}") end desc "Execute remote rpm build using default mock on builder and retrieve package" task :mock => ['pl:fetch', 'pl:load_extras'] do Rake::Task["pl:remote_build"].reenable Rake::Task["pl:remote_build"].invoke(@rpm_build_host, 'HEAD', "pe:local_mock TEAM=#{@team}") end desc "Execute remote rpm build with ALL mocks on builder and retrieve packages" task :mock_all => ['pl:fetch', 'pl:load_extras'] do Rake::Task["pl:remote_build"].reenable Rake::Task["pl:remote_build"].invoke(@rpm_build_host, 'HEAD', "pe:local_mock_final TEAM=#{@team}") end desc "Execute remote sles rpm build and retrieve package" task :sles => ['pl:fetch', 'pl:load_extras'] do Rake::Task["pl:remote_build"].reenable Rake::Task["pl:remote_build"].invoke(@sles_build_host, 'HEAD', "pe:local_sles TEAM=#{@team}") end desc "Execute remote debian, el, and sles builds, sign, and ship pkgs" task :all => ['clean', 'pl:fetch', 'pl:load_extras'] do ['pe:deb', 'pe:mock_all', 'pe:sles', 'pe:ship_rpms', 'pe:ship_debs'].each do |task| Rake::Task[task].execute end end end end