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
80dd0426
Commit
80dd0426
authored
1 year ago
by
Jeremie Bresson
Browse files
Options
Download
Plain Diff
Merge remote-tracking branch 'origin/main' into 6.x
parents
0a6f8898
91fb052b
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/webhook/BuildEvent.java
+10
-0
src/main/java/org/gitlab4j/api/webhook/BuildEvent.java
src/test/resources/org/gitlab4j/api/build-event.json
+1
-0
src/test/resources/org/gitlab4j/api/build-event.json
with
11 additions
and
0 deletions
+11
-0
src/main/java/org/gitlab4j/api/webhook/BuildEvent.java
+
10
-
0
View file @
80dd0426
...
...
@@ -25,6 +25,8 @@ public class BuildEvent extends AbstractEvent {
private
Date
buildStarted_at
;
private
Date
buildFinished_at
;
private
Float
buildDuration
;
private
Float
buildQueuedDuration
;
private
Boolean
buildAllowFailure
;
private
String
buildFailureReason
;
private
Long
projectId
;
...
...
@@ -133,6 +135,14 @@ public class BuildEvent extends AbstractEvent {
this
.
buildDuration
=
buildDuration
;
}
public
Float
getBuildQueuedDuration
()
{
return
buildQueuedDuration
;
}
public
void
setBuildQueuedDuration
(
Float
buildQueuedDuration
)
{
this
.
buildQueuedDuration
=
buildQueuedDuration
;
}
public
Boolean
getBuildAllowFailure
()
{
return
buildAllowFailure
;
}
...
...
This diff is collapsed.
Click to expand it.
src/test/resources/org/gitlab4j/api/build-event.json
+
1
-
0
View file @
80dd0426
...
...
@@ -10,6 +10,7 @@
"build_status"
:
"running"
,
"build_started_at"
:
"2019-05-17T18:09:21Z"
,
"build_duration"
:
0.05880817
,
"build_queued_duration"
:
1095.5887
,
"build_allow_failure"
:
false
,
"build_failure_reason"
:
"unknown_failure"
,
"pipeline_id"
:
2366
,
...
...
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