Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3bda42ad
Commit
3bda42ad
authored
Feb 11, 2022
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rake task to fetch project ids from Sisense
parent
fb859047
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
lib/tasks/ci/build_artifacts.rake
lib/tasks/ci/build_artifacts.rake
+20
-0
No files found.
lib/tasks/ci/build_artifacts.rake
0 → 100644
View file @
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment