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
dc42ba8b
Commit
dc42ba8b
authored
Sep 30, 2021
by
Andrea Scarpino
Committed by
Achilleas Pipinellis
Sep 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: fix wrong example to sort artifacts
parent
9477cff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/administration/job_artifacts.md
doc/administration/job_artifacts.md
+2
-2
No files found.
doc/administration/job_artifacts.md
View file @
dc42ba8b
...
...
@@ -446,10 +446,10 @@ List the artifacts for a single project, sorted by artifact size. The output inc
-
on-disk location of the artifact
```
ruby
p
=
Project
.
find_by_id
(
:project
ID
)
p
=
Project
.
find_by_id
(
<
project_id
>
)
arts
=
Ci
::
JobArtifact
.
where
(
project:
p
)
list
=
arts
.
order
(
'sort DESC'
).
limit
(
50
).
each
do
|
art
|
list
=
arts
.
order
(
size: :desc
).
limit
(
50
).
each
do
|
art
|
puts
"Job ID:
#{
art
.
job_id
}
- Size:
#{
art
.
size
}
b - Type:
#{
art
.
file_type
}
- Created:
#{
art
.
created_at
}
- File loc:
#{
art
.
file
}
"
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