BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d7448f16
Commit
d7448f16
authored
Aug 25, 2017
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'zj-improve-object-store-rake-task' into 'master'
Use proper logging for artifacts rake task See merge request !2762
parent
bc760627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
zj-improve-object-store-rake-task.yml
...elogs/unreleased-ee/zj-improve-object-store-rake-task.yml
+5
-0
artifacts.rake
lib/tasks/gitlab/artifacts.rake
+6
-3
No files found.
changelogs/unreleased-ee/zj-improve-object-store-rake-task.yml
0 → 100644
View file @
d7448f16
---
title
:
Use a logger for the artifacts migration rake task
merge_request
:
author
:
type
:
changed
lib/tasks/gitlab/artifacts.rake
View file @
d7448f16
require
'logger'
desc
"GitLab | Migrate files for artifacts to comply with new storage format"
namespace
:gitlab
do
namespace
:artifacts
do
...
...
@@ -11,9 +13,10 @@ namespace :gitlab do
begin
build
.
artifacts_file
.
migrate!
(
ArtifactUploader
::
REMOTE_STORE
)
build
.
artifacts_metadata
.
migrate!
(
ArtifactUploader
::
REMOTE_STORE
)
print
'.'
rescue
print
'F'
logger
.
info
(
"Transferred artifacts of
#{
build
.
id
}
of
#{
build
.
artifacts_size
}
to object storage"
)
rescue
=>
e
logger
.
error
(
"Failed to transfer artifacts of
#{
build
.
id
}
with error:
#{
e
.
message
}
"
)
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