Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
231d5066
Unverified
Commit
231d5066
authored
3 years ago
by
Gautier de Saint Martin Lacaze
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #801 from mdindoffer/sizeLimitFix
Fix #800 Increase max Artifact size from Integer to Long
parents
57bda9d1
530b4abd
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/gitlab4j/api/models/Artifact.java
+3
-3
src/main/java/org/gitlab4j/api/models/Artifact.java
src/test/resources/org/gitlab4j/api/job.json
+2
-1
src/test/resources/org/gitlab4j/api/job.json
with
5 additions
and
4 deletions
+5
-4
src/main/java/org/gitlab4j/api/models/Artifact.java
+
3
-
3
View file @
231d5066
...
...
@@ -30,7 +30,7 @@ public class Artifact {
}
private
FileType
fileType
;
private
Integer
size
;
private
Long
size
;
private
String
filename
;
private
String
fileFormat
;
...
...
@@ -42,11 +42,11 @@ public class Artifact {
this
.
fileType
=
fileType
;
}
public
Integer
getSize
()
{
public
Long
getSize
()
{
return
size
;
}
public
void
setSize
(
Integer
size
)
{
public
void
setSize
(
Long
size
)
{
this
.
size
=
size
;
}
...
...
This diff is collapsed.
Click to expand it.
src/test/resources/org/gitlab4j/api/job.json
+
2
-
1
View file @
231d5066
...
...
@@ -15,6 +15,7 @@
},
"artifacts"
:
[
{
"file_type"
:
"archive"
,
"size"
:
1000
,
"filename"
:
"artifacts.zip"
,
"file_format"
:
"zip"
},
{
"file_type"
:
"archive"
,
"size"
:
9223372036854775807
,
"filename"
:
"long.max_value.sized.zip"
,
"file_format"
:
"zip"
},
{
"file_type"
:
"metadata"
,
"size"
:
186
,
"filename"
:
"metadata.gz"
,
"file_format"
:
"gzip"
},
{
"file_type"
:
"trace"
,
"size"
:
1500
,
"filename"
:
"job.log"
,
"file_format"
:
"raw"
},
{
"file_type"
:
"junit"
,
"size"
:
750
,
"filename"
:
"junit.xml.gz"
,
"file_format"
:
"gzip"
}
...
...
@@ -61,4 +62,4 @@
"created_at"
:
"2013-09-30T13:46:02Z"
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets