Skip to content

Commit 2dbb499

Browse files
committed
Add environment to pipeline and build event examples
1 parent 58d72e1 commit 2dbb499

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

gitlab4j-models/src/test/resources/org/gitlab4j/models/build-event.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
"path_with_namespace": "gitlab-org/gitlab-test",
5555
"default_branch": "master"
5656
},
57+
"environment": {
58+
"name": "Test Env",
59+
"action": "start",
60+
"deployment_tier": "testing"
61+
},
5762
"runner": {
5863
"active": true,
5964
"runner_type": "project_type",

gitlab4j-models/src/test/resources/org/gitlab4j/models/pipeline-event.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@
189189
"username": "root",
190190
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon",
191191
"email": "[email protected]"
192+
},
193+
"environment": {
194+
"name": "production",
195+
"action": "start",
196+
"deployment_tier": "production"
192197
}
193198
},
194199
{
@@ -304,6 +309,11 @@
304309
"username": "root",
305310
"avatar_url": "http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026d=identicon",
306311
"email": "[email protected]"
312+
},
313+
"environment": {
314+
"name": "staging",
315+
"action": "start",
316+
"deployment_tier": "staging"
307317
}
308318
}
309319
]

0 commit comments

Comments
 (0)