debian-mirror-gitlab/lib/tasks/ci/cleanup.rake
2021-03-11 19:13:27 +05:30

10 lines
224 B
Ruby

# frozen_string_literal: true
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