debian-mirror-gitlab/lib/tasks/ci/cleanup.rake

9 lines
193 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
namespace :ci do
namespace :cleanup do
2020-03-09 13:42:32 +05:30
desc "GitLab | CI | Clean running builds"
2015-09-25 12:07:36 +05:30
task builds: :environment do
Ci::Build.running.update_all(status: 'canceled')
end
end
end