debian-mirror-gitlab/lib/tasks/ci/cleanup.rake
2020-03-13 15:44:24 +05:30

8 lines
193 B
Ruby

namespace :ci do
namespace :cleanup do
desc "GitLab | CI | Clean running builds"
task builds: :environment do
Ci::Build.running.update_all(status: 'canceled')
end
end
end