2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
namespace :ci do
|
|
|
|
namespace :cleanup do
|
2020-03-13 15:44:24 +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
|