diff options
Diffstat (limited to 'lib/tasks/ci/build_artifacts.rake')
-rw-r--r-- | lib/tasks/ci/build_artifacts.rake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/tasks/ci/build_artifacts.rake b/lib/tasks/ci/build_artifacts.rake new file mode 100644 index 00000000000..4f4faef5a62 --- /dev/null +++ b/lib/tasks/ci/build_artifacts.rake @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +require 'httparty' +require 'csv' + +namespace :ci do + namespace :build_artifacts do + desc "GitLab | CI | Fetch projects with incorrect artifact size on GitLab.com" + task :project_with_incorrect_artifact_size do + csv_url = ENV['SISENSE_PROJECT_IDS_WITH_INCORRECT_ARTIFACTS_URL'] + + # rubocop: disable Gitlab/HTTParty + body = HTTParty.get(csv_url) + # rubocop: enable Gitlab/HTTParty + + table = CSV.parse(body.parsed_response, headers: true) + puts table['PROJECT_ID'].join(' ') + end + end +end |