File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed
gitlab4j-models/src/main/java/org/gitlab4j/api Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 22
33import java .util .Date ;
44
5+ import org .gitlab4j .api .webhook .EventEnvironment ;
56import org .gitlab4j .models .utils .JacksonJson ;
67
78/**
@@ -25,6 +26,7 @@ public class Build {
2526 private User user ;
2627 private Runner runner ;
2728 private ArtifactsFile artifactsFile ;
29+ private EventEnvironment environment ;
2830
2931 public Long getId () {
3032 return id ;
@@ -154,6 +156,14 @@ public void setArtifactsFile(ArtifactsFile artifactsFile) {
154156 this .artifactsFile = artifactsFile ;
155157 }
156158
159+ public EventEnvironment getEnvironment () {
160+ return environment ;
161+ }
162+
163+ public void setEnvironment (EventEnvironment environment ) {
164+ this .environment = environment ;
165+ }
166+
157167 @ Override
158168 public String toString () {
159169 return (JacksonJson .toJsonString (this ));
Original file line number Diff line number Diff line change 22
33import java .util .Date ;
44
5+ import org .gitlab4j .api .models .Environment ;
56import org .gitlab4j .api .models .Runner ;
67import org .gitlab4j .models .utils .JacksonJson ;
78
@@ -42,6 +43,8 @@ public class BuildEvent extends AbstractEvent {
4243 private EventProject project ;
4344 private Runner runner ;
4445
46+ private Environment environment ;
47+
4548 @ Override
4649 public String getObjectKind () {
4750 return (OBJECT_KIND );
@@ -244,6 +247,14 @@ public void setRunner(Runner runner) {
244247 this .runner = runner ;
245248 }
246249
250+ public Environment getEnvironment () {
251+ return environment ;
252+ }
253+
254+ public void setEnvironment (Environment environment ) {
255+ this .environment = environment ;
256+ }
257+
247258 @ Override
248259 public String toString () {
249260 return (JacksonJson .toJsonString (this ));
Original file line number Diff line number Diff line change 1+ package org .gitlab4j .api .webhook ;
2+
3+ import org .gitlab4j .models .utils .JacksonJson ;
4+
5+ public class EventEnvironment {
6+ private String name ;
7+ private String action ;
8+ private String deploymentTier ;
9+
10+ public String getName () {
11+ return name ;
12+ }
13+
14+ public void setName (String name ) {
15+ this .name = name ;
16+ }
17+
18+ public String getAction () {
19+ return action ;
20+ }
21+
22+ public void setAction (String action ) {
23+ this .action = action ;
24+ }
25+
26+ public String getDeploymentTier () {
27+ return deploymentTier ;
28+ }
29+
30+ public void setDeploymentTier (String deploymentTier ) {
31+ this .deploymentTier = deploymentTier ;
32+ }
33+
34+ @ Override
35+ public String toString () {
36+ return (JacksonJson .toJsonString (this ));
37+ }
38+ }
You can’t perform that action at this time.
0 commit comments