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
91fb052b
Unverified
Commit
91fb052b
authored
Jul 18, 2023
by
luvarqpp
Committed by
GitHub
Jul 18, 2023
Browse files
Add buildQueuedDuration to BuildEvent (#998)
Co-authored-by:
Jeremie Bresson
<
jeremie.bresson@unblu.com
>
parent
555b4acc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/webhook/BuildEvent.java
View file @
91fb052b
...
...
@@ -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
;
}
...
...
src/test/resources/org/gitlab4j/api/build-event.json
View file @
91fb052b
...
...
@@ -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
,
...
...
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