Commit 5e7cba8a authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '238536-script-to-download-project-ids-from-sisense' into 'master'

Rake task to fetch project ids from Sisense

See merge request gitlab-org/gitlab!80580
parents c5107d54 3bda42ad
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment