gitlab-org--gitlab-foss/lib/tasks/ci/cleanup.rake

9 lines
191 B
Ruby
Raw Normal View History

2015-08-25 21:42:46 -04:00
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