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
555b4acc
Unverified
Commit
555b4acc
authored
Jul 18, 2023
by
luvarqpp
Committed by
GitHub
Jul 18, 2023
Browse files
Add pipeline id attribute to BuildEvent class (#999)
Co-authored-by:
Jeremie Bresson
<
jeremie.bresson@unblu.com
>
parent
c07a4c4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/webhook/BuildEvent.java
View file @
555b4acc
...
...
@@ -6,7 +6,7 @@ import org.gitlab4j.api.models.User;
import
org.gitlab4j.api.utils.JacksonJson
;
/**
* The documentation at: <a href="https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#job-events">
* The documentation at: <a href="https://docs.gitlab.com/ee/user/project/integrations/webhook
_event
s.html#job-events">
* Job Events</a> is incorrect, this class represents the actual content of the Job Hook event.
*/
public
class
BuildEvent
extends
AbstractEvent
{
...
...
@@ -28,6 +28,8 @@ public class BuildEvent extends AbstractEvent {
private
Boolean
buildAllowFailure
;
private
String
buildFailureReason
;
private
Long
projectId
;
private
Long
pipelineId
;
private
String
projectName
;
private
User
user
;
private
BuildCommit
commit
;
...
...
@@ -155,6 +157,14 @@ public class BuildEvent extends AbstractEvent {
this
.
projectId
=
projectId
;
}
public
Long
getPipelineId
()
{
return
pipelineId
;
}
public
void
setPipelineId
(
Long
pipelineId
)
{
this
.
pipelineId
=
pipelineId
;
}
public
String
getProjectName
()
{
return
projectName
;
}
...
...
src/test/resources/org/gitlab4j/api/build-event.json
View file @
555b4acc
...
...
@@ -12,6 +12,7 @@
"build_duration"
:
0.05880817
,
"build_allow_failure"
:
false
,
"build_failure_reason"
:
"unknown_failure"
,
"pipeline_id"
:
2366
,
"project_id"
:
3115610
,
"project_name"
:
"GitLab4J / test-project"
,
"user"
:
{
...
...
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