File tree 2 files changed +31
-9
lines changed 2 files changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ type PipelineEventPayload struct {
109
109
Project Project `json:"project"`
110
110
Commit Commit `json:"commit"`
111
111
ObjectAttributes ObjectAttributes `json:"object_attributes"`
112
- Builds [] Build `json:"builds "`
112
+ Jobs [] Job `json:"jobs "`
113
113
}
114
114
115
115
// CommentEventPayload contains the information for GitLab's comment event
@@ -193,8 +193,8 @@ type Issue struct {
193
193
IID int64 `json:"iid"`
194
194
}
195
195
196
- // Build contains all of the GitLab build information
197
- type Build struct {
196
+ // Job contains all of the GitLab job information
197
+ type Job struct {
198
198
ID int64 `json:"id"`
199
199
Stage string `json:"stage"`
200
200
Name string `json:"name"`
Original file line number Diff line number Diff line change 14
14
],
15
15
"created_at" : " 2016-08-12 15:23:28 UTC" ,
16
16
"finished_at" : " 2016-08-12 15:26:29 UTC" ,
17
- "duration" : 63
17
+ "duration" : 63 ,
18
+ "variables" : [
19
+ {
20
+ "key" : " NESTOR_PROD_ENVIRONMENT" ,
21
+ "value" : " us-west-1"
22
+ }
23
+ ]
18
24
},
19
25
"user" :{
20
26
"name" : " Administrator" ,
21
27
"username" : " root" ,
22
28
"avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
23
29
},
24
30
"project" :{
31
+ "id" : 1 ,
25
32
"name" : " Gitlab Test" ,
26
33
"description" : " Atque in sunt eos similique dolores voluptatem." ,
27
34
"web_url" : " http://192.168.64.1:3005/gitlab-org/gitlab-test" ,
43
50
44
51
}
45
52
},
46
- "builds " :[
53
+ "jobs " :[
47
54
{
48
55
"id" : 380 ,
49
56
"stage" : " deploy" ,
80
87
"username" : " root" ,
81
88
"avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
82
89
},
83
- "runner" : null ,
90
+ "runner" : {
91
+ "id" :380987 ,
92
+ "description" :" shared-runners-manager-6.gitlab.com" ,
93
+ "active" :true ,
94
+ "is_shared" :true
95
+ },
84
96
"artifacts_file" :{
85
97
"filename" : null ,
86
98
"size" : null
101
113
"username" : " root" ,
102
114
"avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
103
115
},
104
- "runner" : null ,
116
+ "runner" : {
117
+ "id" :380987 ,
118
+ "description" :" shared-runners-manager-6.gitlab.com" ,
119
+ "active" :true ,
120
+ "is_shared" :true
121
+ },
105
122
"artifacts_file" :{
106
123
"filename" : null ,
107
124
"size" : null
122
139
"username" : " root" ,
123
140
"avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
124
141
},
125
- "runner" : null ,
142
+ "runner" : {
143
+ "id" :380987 ,
144
+ "description" :" shared-runners-manager-6.gitlab.com" ,
145
+ "active" :true ,
146
+ "is_shared" :true
147
+ },
126
148
"artifacts_file" :{
127
149
"filename" : null ,
128
150
"size" : null
150
172
}
151
173
}
152
174
]
153
- }
175
+ }
You can’t perform that action at this time.
0 commit comments