2021-02-05 07:09:31 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-08-25 21:42:46 -04:00
|
|
|
namespace :ci do
|
|
|
|
namespace :cleanup do
|
2020-01-23 01:08:32 -05:00
|
|
|
desc "GitLab | CI | Clean running builds"
|
2015-08-25 21:42:46 -04:00
|
|
|
task builds: :environment do
|
|
|
|
Ci::Build.running.update_all(status: 'canceled')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|