Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
530b4abd
Commit
530b4abd
authored
Feb 21, 2022
by
Martin Dindoffer
Browse files
Fix #800 Increase max Artifact size from Integer to Long
parent
5335c9e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/Artifact.java
View file @
530b4abd
...
...
@@ -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
;
}
...
...
src/test/resources/org/gitlab4j/api/job.json
View file @
530b4abd
...
...
@@ -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
}
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