File tree Expand file tree Collapse file tree 2 files changed +31
-9
lines changed Expand file tree Collapse file tree 2 files changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ type PipelineEventPayload struct {
109109 Project Project `json:"project"`
110110 Commit Commit `json:"commit"`
111111 ObjectAttributes ObjectAttributes `json:"object_attributes"`
112- Builds [] Build `json:"builds "`
112+ Jobs [] Job `json:"jobs "`
113113}
114114
115115// CommentEventPayload contains the information for GitLab's comment event
@@ -193,8 +193,8 @@ type Issue struct {
193193 IID int64 `json:"iid"`
194194}
195195
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 {
198198 ID int64 `json:"id"`
199199 Stage string `json:"stage"`
200200 Name string `json:"name"`
Original file line number Diff line number Diff line change 1414 ],
1515 "created_at" : " 2016-08-12 15:23:28 UTC" ,
1616 "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+ ]
1824 },
1925 "user" :{
2026 "name" : " Administrator" ,
2127 "username" : " root" ,
2228 "avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
2329 },
2430 "project" :{
31+ "id" : 1 ,
2532 "name" : " Gitlab Test" ,
2633 "description" : " Atque in sunt eos similique dolores voluptatem." ,
2734 "web_url" : " http://192.168.64.1:3005/gitlab-org/gitlab-test" ,
4350 "email" : " user@gitlab.com"
4451 }
4552 },
46- "builds " :[
53+ "jobs " :[
4754 {
4855 "id" : 380 ,
4956 "stage" : " deploy" ,
8087 "username" : " root" ,
8188 "avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
8289 },
83- "runner" : null ,
90+ "runner" : {
91+ "id" :380987 ,
92+ "description" :" shared-runners-manager-6.gitlab.com" ,
93+ "active" :true ,
94+ "is_shared" :true
95+ },
8496 "artifacts_file" :{
8597 "filename" : null ,
8698 "size" : null
101113 "username" : " root" ,
102114 "avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
103115 },
104- "runner" : null ,
116+ "runner" : {
117+ "id" :380987 ,
118+ "description" :" shared-runners-manager-6.gitlab.com" ,
119+ "active" :true ,
120+ "is_shared" :true
121+ },
105122 "artifacts_file" :{
106123 "filename" : null ,
107124 "size" : null
122139 "username" : " root" ,
123140 "avatar_url" : " http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80\u0026 d=identicon"
124141 },
125- "runner" : null ,
142+ "runner" : {
143+ "id" :380987 ,
144+ "description" :" shared-runners-manager-6.gitlab.com" ,
145+ "active" :true ,
146+ "is_shared" :true
147+ },
126148 "artifacts_file" :{
127149 "filename" : null ,
128150 "size" : null
150172 }
151173 }
152174 ]
153- }
175+ }
You can’t perform that action at this time.
0 commit comments