danger-gitlab_graph 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/Gemfile.lock +23 -1
- data/README.md +50 -1
- data/danger-gitlab_graph.gemspec +13 -9
- data/lib/gitlab_graph/gem_version.rb +1 -1
- data/lib/gitlab_graph/plugin.rb +87 -36
- data/spec/gitlab_graph_spec.rb +80 -16
- data/spec/spec_helper.rb +24 -2
- data/spec/support/fixtures/graph-simple-expected.svg +369 -0
- data/spec/support/fixtures/jobs-1119.json +97 -0
- data/spec/support/fixtures/jobs-123456.json +97 -0
- data/spec/support/fixtures/pipelines.json +14 -0
- data/spec/support/fixtures/trace-2722.txt +49 -0
- data/spec/support/fixtures/trace-2723.txt +49 -0
- data/spec/support/gitlab_helper.rb +56 -0
- metadata +41 -9
- data/spec/support/fixtures/github_pr.json +0 -277
@@ -0,0 +1,369 @@
|
|
1
|
+
<svg width='640' height='480' viewBox='0 0 640 480' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:a3='http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/' a3:scriptImplementation='Adobe'>
|
2
|
+
<!-- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\-->
|
3
|
+
<!-- Created with SVG::Graph -->
|
4
|
+
<!-- SVG::Graph by Sean E. Russell -->
|
5
|
+
<!-- Losely based on SVG::TT::Graph for Perl by Leo Lapworth & Stephan Morgan -->
|
6
|
+
<!-- //////////////////////////////////////////////////////////////////-->
|
7
|
+
<defs>
|
8
|
+
<style type='text/css'>
|
9
|
+
<![CDATA[/* Copy from here for external style sheet */
|
10
|
+
.svgBackground{
|
11
|
+
fill:#ffffff;
|
12
|
+
}
|
13
|
+
.graphBackground{
|
14
|
+
fill:#f0f0f0;
|
15
|
+
}
|
16
|
+
|
17
|
+
/* graphs titles */
|
18
|
+
.mainTitle{
|
19
|
+
text-anchor: middle;
|
20
|
+
fill: #000000;
|
21
|
+
font-size: 16px;
|
22
|
+
font-family: "Arial", sans-serif;
|
23
|
+
font-weight: normal;
|
24
|
+
}
|
25
|
+
.subTitle{
|
26
|
+
text-anchor: middle;
|
27
|
+
fill: #999999;
|
28
|
+
font-size: 14px;
|
29
|
+
font-family: "Arial", sans-serif;
|
30
|
+
font-weight: normal;
|
31
|
+
}
|
32
|
+
|
33
|
+
.axis{
|
34
|
+
stroke: #000000;
|
35
|
+
stroke-width: 1px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.guideLines{
|
39
|
+
stroke: #666666;
|
40
|
+
stroke-width: 1px;
|
41
|
+
stroke-dasharray: 5 5;
|
42
|
+
}
|
43
|
+
|
44
|
+
.xAxisLabels{
|
45
|
+
text-anchor: middle;
|
46
|
+
fill: #000000;
|
47
|
+
font-size: 12px;
|
48
|
+
font-family: "Arial", sans-serif;
|
49
|
+
font-weight: normal;
|
50
|
+
}
|
51
|
+
|
52
|
+
.yAxisLabels{
|
53
|
+
text-anchor: end;
|
54
|
+
fill: #000000;
|
55
|
+
font-size: 12px;
|
56
|
+
font-family: "Arial", sans-serif;
|
57
|
+
font-weight: normal;
|
58
|
+
}
|
59
|
+
|
60
|
+
.xAxisTitle{
|
61
|
+
text-anchor: middle;
|
62
|
+
fill: #ff0000;
|
63
|
+
font-size: 14px;
|
64
|
+
font-family: "Arial", sans-serif;
|
65
|
+
font-weight: normal;
|
66
|
+
}
|
67
|
+
|
68
|
+
.yAxisTitle{
|
69
|
+
fill: #ff0000;
|
70
|
+
text-anchor: middle;
|
71
|
+
font-size: 14px;
|
72
|
+
font-family: "Arial", sans-serif;
|
73
|
+
font-weight: normal;
|
74
|
+
}
|
75
|
+
|
76
|
+
.dataPointLabel, .dataPointLabelBackground, .dataPointPopup, .dataPointPopupMask{
|
77
|
+
fill: #000000;
|
78
|
+
text-anchor:middle;
|
79
|
+
font-size: 10px;
|
80
|
+
font-family: "Arial", sans-serif;
|
81
|
+
font-weight: normal;
|
82
|
+
}
|
83
|
+
|
84
|
+
.dataPointLabelBackground{
|
85
|
+
stroke: #ffffff;
|
86
|
+
stroke-width: 2;
|
87
|
+
}
|
88
|
+
|
89
|
+
.dataPointPopupMask{
|
90
|
+
stroke: white;
|
91
|
+
stroke-width: 7;
|
92
|
+
}
|
93
|
+
|
94
|
+
.dataPointPopup{
|
95
|
+
fill: black;
|
96
|
+
stroke-width: 2;
|
97
|
+
}
|
98
|
+
|
99
|
+
.staggerGuideLine{
|
100
|
+
fill: none;
|
101
|
+
stroke: #000000;
|
102
|
+
stroke-width: 0.5px;
|
103
|
+
}
|
104
|
+
|
105
|
+
/* default line styles */
|
106
|
+
.line1{
|
107
|
+
fill: none;
|
108
|
+
stroke: #ff0000;
|
109
|
+
stroke-width: 1px;
|
110
|
+
}
|
111
|
+
.line2{
|
112
|
+
fill: none;
|
113
|
+
stroke: #0000ff;
|
114
|
+
stroke-width: 1px;
|
115
|
+
}
|
116
|
+
.line3{
|
117
|
+
fill: none;
|
118
|
+
stroke: #00ff00;
|
119
|
+
stroke-width: 1px;
|
120
|
+
}
|
121
|
+
.line4{
|
122
|
+
fill: none;
|
123
|
+
stroke: #ffcc00;
|
124
|
+
stroke-width: 1px;
|
125
|
+
}
|
126
|
+
.line5{
|
127
|
+
fill: none;
|
128
|
+
stroke: #00ccff;
|
129
|
+
stroke-width: 1px;
|
130
|
+
}
|
131
|
+
.line6{
|
132
|
+
fill: none;
|
133
|
+
stroke: #ff00ff;
|
134
|
+
stroke-width: 1px;
|
135
|
+
}
|
136
|
+
.line7{
|
137
|
+
fill: none;
|
138
|
+
stroke: #00ffff;
|
139
|
+
stroke-width: 1px;
|
140
|
+
}
|
141
|
+
.line8{
|
142
|
+
fill: none;
|
143
|
+
stroke: #ffff00;
|
144
|
+
stroke-width: 1px;
|
145
|
+
}
|
146
|
+
.line9{
|
147
|
+
fill: none;
|
148
|
+
stroke: #ccc6666;
|
149
|
+
stroke-width: 1px;
|
150
|
+
}
|
151
|
+
.line10{
|
152
|
+
fill: none;
|
153
|
+
stroke: #663399;
|
154
|
+
stroke-width: 1px;
|
155
|
+
}
|
156
|
+
.line11{
|
157
|
+
fill: none;
|
158
|
+
stroke: #339900;
|
159
|
+
stroke-width: 1px;
|
160
|
+
}
|
161
|
+
.line12{
|
162
|
+
fill: none;
|
163
|
+
stroke: #9966FF;
|
164
|
+
stroke-width: 1px;
|
165
|
+
}
|
166
|
+
/* default fill styles */
|
167
|
+
.fill1{
|
168
|
+
fill: #cc0000;
|
169
|
+
fill-opacity: 0.2;
|
170
|
+
stroke: none;
|
171
|
+
}
|
172
|
+
.fill2{
|
173
|
+
fill: #0000cc;
|
174
|
+
fill-opacity: 0.2;
|
175
|
+
stroke: none;
|
176
|
+
}
|
177
|
+
.fill3{
|
178
|
+
fill: #00cc00;
|
179
|
+
fill-opacity: 0.2;
|
180
|
+
stroke: none;
|
181
|
+
}
|
182
|
+
.fill4{
|
183
|
+
fill: #ffcc00;
|
184
|
+
fill-opacity: 0.2;
|
185
|
+
stroke: none;
|
186
|
+
}
|
187
|
+
.fill5{
|
188
|
+
fill: #00ccff;
|
189
|
+
fill-opacity: 0.2;
|
190
|
+
stroke: none;
|
191
|
+
}
|
192
|
+
.fill6{
|
193
|
+
fill: #ff00ff;
|
194
|
+
fill-opacity: 0.2;
|
195
|
+
stroke: none;
|
196
|
+
}
|
197
|
+
.fill7{
|
198
|
+
fill: #00ffff;
|
199
|
+
fill-opacity: 0.2;
|
200
|
+
stroke: none;
|
201
|
+
}
|
202
|
+
.fill8{
|
203
|
+
fill: #ffff00;
|
204
|
+
fill-opacity: 0.2;
|
205
|
+
stroke: none;
|
206
|
+
}
|
207
|
+
.fill9{
|
208
|
+
fill: #cc6666;
|
209
|
+
fill-opacity: 0.2;
|
210
|
+
stroke: none;
|
211
|
+
}
|
212
|
+
.fill10{
|
213
|
+
fill: #663399;
|
214
|
+
fill-opacity: 0.2;
|
215
|
+
stroke: none;
|
216
|
+
}
|
217
|
+
.fill11{
|
218
|
+
fill: #339900;
|
219
|
+
fill-opacity: 0.2;
|
220
|
+
stroke: none;
|
221
|
+
}
|
222
|
+
.fill12{
|
223
|
+
fill: #9966FF;
|
224
|
+
fill-opacity: 0.2;
|
225
|
+
stroke: none;
|
226
|
+
}
|
227
|
+
/* default line styles */
|
228
|
+
.key1,.dataPoint1{
|
229
|
+
fill: #ff0000;
|
230
|
+
stroke: none;
|
231
|
+
stroke-width: 1px;
|
232
|
+
}
|
233
|
+
.key2,.dataPoint2{
|
234
|
+
fill: #0000ff;
|
235
|
+
stroke: none;
|
236
|
+
stroke-width: 1px;
|
237
|
+
}
|
238
|
+
.key3,.dataPoint3{
|
239
|
+
fill: #00ff00;
|
240
|
+
stroke: none;
|
241
|
+
stroke-width: 1px;
|
242
|
+
}
|
243
|
+
.key4,.dataPoint4{
|
244
|
+
fill: #ffcc00;
|
245
|
+
stroke: none;
|
246
|
+
stroke-width: 1px;
|
247
|
+
}
|
248
|
+
.key5,.dataPoint5{
|
249
|
+
fill: #00ccff;
|
250
|
+
stroke: none;
|
251
|
+
stroke-width: 1px;
|
252
|
+
}
|
253
|
+
.key6,.dataPoint6{
|
254
|
+
fill: #ff00ff;
|
255
|
+
stroke: none;
|
256
|
+
stroke-width: 1px;
|
257
|
+
}
|
258
|
+
.key7,.dataPoint7{
|
259
|
+
fill: #00ffff;
|
260
|
+
stroke: none;
|
261
|
+
stroke-width: 1px;
|
262
|
+
}
|
263
|
+
.key8,.dataPoint8{
|
264
|
+
fill: #ffff00;
|
265
|
+
stroke: none;
|
266
|
+
stroke-width: 1px;
|
267
|
+
}
|
268
|
+
.key9,.dataPoint9{
|
269
|
+
fill: #cc6666;
|
270
|
+
stroke: none;
|
271
|
+
stroke-width: 1px;
|
272
|
+
}
|
273
|
+
.key10,.dataPoint10{
|
274
|
+
fill: #663399;
|
275
|
+
stroke: none;
|
276
|
+
stroke-width: 1px;
|
277
|
+
}
|
278
|
+
.key11,.dataPoint11{
|
279
|
+
fill: #339900;
|
280
|
+
stroke: none;
|
281
|
+
stroke-width: 1px;
|
282
|
+
}
|
283
|
+
.key12,.dataPoint12{
|
284
|
+
fill: #9966FF;
|
285
|
+
stroke: none;
|
286
|
+
stroke-width: 1px;
|
287
|
+
}
|
288
|
+
|
289
|
+
|
290
|
+
.keyText{
|
291
|
+
fill: #000000;
|
292
|
+
text-anchor:start;
|
293
|
+
font-size: 10px;
|
294
|
+
font-family: "Arial", sans-serif;
|
295
|
+
font-weight: normal;
|
296
|
+
}
|
297
|
+
/* End copy for external style sheet */
|
298
|
+
]]>
|
299
|
+
</style>
|
300
|
+
</defs>
|
301
|
+
<!-- include default stylesheet if none specified -->
|
302
|
+
<!--SVG Background-->
|
303
|
+
<rect width='640' height='480' x='0' y='0' class='svgBackground'/>
|
304
|
+
<g transform='translate( 77.0 26 )'>
|
305
|
+
<rect x='0' y='0' width='468.0' height='413' class='graphBackground'/>
|
306
|
+
<path d='M 0 413 h468.0' class='axis' id='yAxis'/>
|
307
|
+
<path d='M 0.0 0 v413' class='axis' id='xAxis'/>
|
308
|
+
<text class='xAxisLabels' x='0.0' y='428' style='text-anchor: middle'>b23f54ec</text>
|
309
|
+
<text class='xAxisLabels' x='468.0' y='428' style='text-anchor: middle'>33333333</text>
|
310
|
+
<text x='-19.5' y='417.0' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 417.0 ) '>4.00s</text>
|
311
|
+
<text x='-19.5' y='379.45454545454544' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 379.45454545454544 ) '>5.26s</text>
|
312
|
+
<path d='M0 375.45454545454544 h468.0' class='guideLines'/>
|
313
|
+
<text x='-19.5' y='341.9090909090909' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 341.9090909090909 ) '>6.52s</text>
|
314
|
+
<path d='M0 337.9090909090909 h468.0' class='guideLines'/>
|
315
|
+
<text x='-19.5' y='304.3636363636364' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 304.3636363636364 ) '>7.78s</text>
|
316
|
+
<path d='M0 300.3636363636364 h468.0' class='guideLines'/>
|
317
|
+
<text x='-19.5' y='266.8181818181818' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 266.8181818181818 ) '>9.04s</text>
|
318
|
+
<path d='M0 262.8181818181818 h468.0' class='guideLines'/>
|
319
|
+
<text x='-19.5' y='229.27272727272725' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 229.27272727272725 ) '>10.30s</text>
|
320
|
+
<path d='M0 225.27272727272725 h468.0' class='guideLines'/>
|
321
|
+
<text x='-19.5' y='191.72727272727272' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 191.72727272727272 ) '>11.56s</text>
|
322
|
+
<path d='M0 187.72727272727272 h468.0' class='guideLines'/>
|
323
|
+
<text x='-19.5' y='154.1818181818182' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 154.1818181818182 ) '>12.82s</text>
|
324
|
+
<path d='M0 150.1818181818182 h468.0' class='guideLines'/>
|
325
|
+
<text x='-19.5' y='116.63636363636363' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 116.63636363636363 ) '>14.08s</text>
|
326
|
+
<path d='M0 112.63636363636363 h468.0' class='guideLines'/>
|
327
|
+
<text x='-19.5' y='79.09090909090907' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 79.09090909090907 ) '>15.34s</text>
|
328
|
+
<path d='M0 75.09090909090907 h468.0' class='guideLines'/>
|
329
|
+
<text x='-19.5' y='41.545454545454504' class='yAxisLabels' style='text-anchor: middle' transform='translate( -12 0 ) rotate( 0 -19.5 41.545454545454504 ) '>16.60s</text>
|
330
|
+
<path d='M0 37.545454545454504 h468.0' class='guideLines'/>
|
331
|
+
<path d='M0 413 L0.0 413.0 468.0 115.02020202020208 ' class='line2'/>
|
332
|
+
<circle cx='0.0' cy='413.0' r='2.5' class='dataPoint2'/>
|
333
|
+
<circle cx='468.0' cy='115.02020202020208' r='2.5' class='dataPoint2'/>
|
334
|
+
<path d='M0 413 L0.0 55.42424242424249 468.0 353.4040404040404 ' class='line1'/>
|
335
|
+
<circle cx='0.0' cy='55.42424242424249' r='2.5' class='dataPoint1'/>
|
336
|
+
<circle cx='468.0' cy='353.4040404040404' r='2.5' class='dataPoint1'/>
|
337
|
+
<g>
|
338
|
+
<text x='0.0' y='407.0' class='dataPointLabelBackground' style='text-anchor: start;'>4.00s</text>
|
339
|
+
<text x='0.0' y='407.0' class='dataPointLabel' style='text-anchor: start;'>4.00s</text>
|
340
|
+
<a xlink:href=''>
|
341
|
+
<circle cx='0.0' cy='413.0' r='10' style='opacity: 0'/>
|
342
|
+
</a>
|
343
|
+
<text x='468.0' y='109.02020202020208' class='dataPointLabelBackground' style='text-anchor: end;'>14.00s</text>
|
344
|
+
<text x='468.0' y='109.02020202020208' class='dataPointLabel' style='text-anchor: end;'>14.00s</text>
|
345
|
+
<a xlink:href=''>
|
346
|
+
<circle cx='468.0' cy='115.02020202020208' r='10' style='opacity: 0'/>
|
347
|
+
</a>
|
348
|
+
<text x='0.0' y='49.42424242424249' class='dataPointLabelBackground' style='text-anchor: start;'>16.00s</text>
|
349
|
+
<text x='0.0' y='49.42424242424249' class='dataPointLabel' style='text-anchor: start;'>16.00s</text>
|
350
|
+
<a xlink:href=''>
|
351
|
+
<circle cx='0.0' cy='55.42424242424249' r='10' style='opacity: 0'/>
|
352
|
+
</a>
|
353
|
+
<text x='468.0' y='347.4040404040404' class='dataPointLabelBackground' style='text-anchor: end;'>6.00s</text>
|
354
|
+
<text x='468.0' y='347.4040404040404' class='dataPointLabel' style='text-anchor: end;'>6.00s</text>
|
355
|
+
<a xlink:href=''>
|
356
|
+
<circle cx='468.0' cy='353.4040404040404' r='10' style='opacity: 0'/>
|
357
|
+
</a>
|
358
|
+
</g>
|
359
|
+
</g>
|
360
|
+
<text x='320' y='16' class='mainTitle'>Performance Metric</text>
|
361
|
+
<text x='311.0' y='468' class='xAxisTitle'>Commit</text>
|
362
|
+
<text x='17' y='232' class='yAxisTitle' transform='rotate( -90, 17, 232 )'>Metric Value</text>
|
363
|
+
<g transform='translate(555.0 36)'>
|
364
|
+
<rect x='0' y='0' width='12' height='12' class='key1'/>
|
365
|
+
<text x='17' y='12' class='keyText'>Performance</text>
|
366
|
+
<rect x='0' y='17' width='12' height='12' class='key2'/>
|
367
|
+
<text x='17' y='29' class='keyText'>IDLE time</text>
|
368
|
+
</g>
|
369
|
+
</svg>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": 2722,
|
4
|
+
"status": "success",
|
5
|
+
"stage": "test",
|
6
|
+
"name": "test1",
|
7
|
+
"ref": "main",
|
8
|
+
"tag": false,
|
9
|
+
"coverage": null,
|
10
|
+
"allow_failure": false,
|
11
|
+
"created_at": "2022-10-03T13:31:51.194Z",
|
12
|
+
"started_at": "2022-10-03T13:32:39.680Z",
|
13
|
+
"finished_at": "2022-10-03T13:32:48.132Z",
|
14
|
+
"duration": 8.451455,
|
15
|
+
"queued_duration": 47.08147,
|
16
|
+
"user": {
|
17
|
+
"id": 2,
|
18
|
+
"username": "username",
|
19
|
+
"name": "fullname",
|
20
|
+
"state": "active",
|
21
|
+
"avatar_url": "https://secure.gravatar.com/avatar/",
|
22
|
+
"web_url": "https://gitlab-instance.example.com/username",
|
23
|
+
"created_at": "2017-09-25T17:57:20.456Z",
|
24
|
+
"bio": "",
|
25
|
+
"location": "",
|
26
|
+
"public_email": "",
|
27
|
+
"skype": "",
|
28
|
+
"linkedin": "",
|
29
|
+
"twitter": "",
|
30
|
+
"website_url": "",
|
31
|
+
"organization": "",
|
32
|
+
"job_title": "",
|
33
|
+
"pronouns": null,
|
34
|
+
"bot": false,
|
35
|
+
"work_information": null,
|
36
|
+
"followers": 0,
|
37
|
+
"following": 0,
|
38
|
+
"local_time": null
|
39
|
+
},
|
40
|
+
"commit": {
|
41
|
+
"id": "c54d9bacac8766604c41843938c803cd81aab975",
|
42
|
+
"short_id": "c54d9bac",
|
43
|
+
"created_at": "2022-10-03T15:31:49.000+02:00",
|
44
|
+
"parent_ids": [
|
45
|
+
"377fb044448f01c297771913ae71d05309eb664d"
|
46
|
+
],
|
47
|
+
"title": "bm",
|
48
|
+
"message": "bm\n",
|
49
|
+
"author_name": "fullname",
|
50
|
+
"author_email": "email",
|
51
|
+
"authored_date": "2022-10-03T15:31:49.000+02:00",
|
52
|
+
"committer_name": "fullname",
|
53
|
+
"committer_email": "email",
|
54
|
+
"committed_date": "2022-10-03T15:31:49.000+02:00",
|
55
|
+
"trailers": {},
|
56
|
+
"web_url": "https://gitlab-instance.example.com/username/danger-test-repo/-/commit/c54d9bacac8766604c41843938c803cd81aab975"
|
57
|
+
},
|
58
|
+
"pipeline": {
|
59
|
+
"id": 1119,
|
60
|
+
"iid": 4,
|
61
|
+
"project_id": 216,
|
62
|
+
"sha": "c54d9bacac8766604c41843938c803cd81aab975",
|
63
|
+
"ref": "main",
|
64
|
+
"status": "success",
|
65
|
+
"source": "push",
|
66
|
+
"created_at": "2022-10-03T13:31:51.178Z",
|
67
|
+
"updated_at": "2022-10-03T13:38:10.801Z",
|
68
|
+
"web_url": "https://gitlab-instance.example.com/username/danger-test-repo/-/pipelines/1119"
|
69
|
+
},
|
70
|
+
"web_url": "https://git.jbeckmann.info/kingjan1999/danger-test-repo/-/jobs/2722",
|
71
|
+
"project": {
|
72
|
+
"ci_job_token_scope_enabled": false
|
73
|
+
},
|
74
|
+
"artifacts": [
|
75
|
+
{
|
76
|
+
"file_type": "trace",
|
77
|
+
"size": 2576,
|
78
|
+
"filename": "job.log",
|
79
|
+
"file_format": null
|
80
|
+
}
|
81
|
+
],
|
82
|
+
"runner": {
|
83
|
+
"id": 5,
|
84
|
+
"description": "7171d2237404",
|
85
|
+
"ip_address": "172.18.0.3",
|
86
|
+
"active": true,
|
87
|
+
"paused": false,
|
88
|
+
"is_shared": false,
|
89
|
+
"runner_type": "project_type",
|
90
|
+
"name": "gitlab-runner",
|
91
|
+
"online": true,
|
92
|
+
"status": "online"
|
93
|
+
},
|
94
|
+
"artifacts_expire_at": null,
|
95
|
+
"tag_list": []
|
96
|
+
}
|
97
|
+
]
|
@@ -0,0 +1,97 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": 2723,
|
4
|
+
"status": "success",
|
5
|
+
"stage": "test",
|
6
|
+
"name": "test1",
|
7
|
+
"ref": "main",
|
8
|
+
"tag": false,
|
9
|
+
"coverage": null,
|
10
|
+
"allow_failure": false,
|
11
|
+
"created_at": "2022-10-03T13:31:51.194Z",
|
12
|
+
"started_at": "2022-10-03T13:32:39.680Z",
|
13
|
+
"finished_at": "2022-10-03T13:32:48.132Z",
|
14
|
+
"duration": 8.451455,
|
15
|
+
"queued_duration": 47.08147,
|
16
|
+
"user": {
|
17
|
+
"id": 2,
|
18
|
+
"username": "username",
|
19
|
+
"name": "fullname",
|
20
|
+
"state": "active",
|
21
|
+
"avatar_url": "https://secure.gravatar.com/avatar/",
|
22
|
+
"web_url": "https://gitlab-instance.example.com/username",
|
23
|
+
"created_at": "2017-09-25T17:57:20.456Z",
|
24
|
+
"bio": "",
|
25
|
+
"location": "",
|
26
|
+
"public_email": "",
|
27
|
+
"skype": "",
|
28
|
+
"linkedin": "",
|
29
|
+
"twitter": "",
|
30
|
+
"website_url": "",
|
31
|
+
"organization": "",
|
32
|
+
"job_title": "",
|
33
|
+
"pronouns": null,
|
34
|
+
"bot": false,
|
35
|
+
"work_information": null,
|
36
|
+
"followers": 0,
|
37
|
+
"following": 0,
|
38
|
+
"local_time": null
|
39
|
+
},
|
40
|
+
"commit": {
|
41
|
+
"id": "c54d9bacac8766604c41843938c803cd81aab975",
|
42
|
+
"short_id": "c54d9bac",
|
43
|
+
"created_at": "2022-10-03T15:31:49.000+02:00",
|
44
|
+
"parent_ids": [
|
45
|
+
"377fb044448f01c297771913ae71d05309eb664d"
|
46
|
+
],
|
47
|
+
"title": "bm",
|
48
|
+
"message": "bm\n",
|
49
|
+
"author_name": "fullname",
|
50
|
+
"author_email": "email",
|
51
|
+
"authored_date": "2022-10-03T15:31:49.000+02:00",
|
52
|
+
"committer_name": "fullname",
|
53
|
+
"committer_email": "email",
|
54
|
+
"committed_date": "2022-10-03T15:31:49.000+02:00",
|
55
|
+
"trailers": {},
|
56
|
+
"web_url": "https://gitlab-instance.example.com/username/danger-test-repo/-/commit/c54d9bacac8766604c41843938c803cd81aab975"
|
57
|
+
},
|
58
|
+
"pipeline": {
|
59
|
+
"id": 123456,
|
60
|
+
"iid": 4,
|
61
|
+
"project_id": 216,
|
62
|
+
"sha": "c54d9bacac8766604c41843938c803cd81aab975",
|
63
|
+
"ref": "main",
|
64
|
+
"status": "success",
|
65
|
+
"source": "push",
|
66
|
+
"created_at": "2022-10-03T13:31:51.178Z",
|
67
|
+
"updated_at": "2022-10-03T13:38:10.801Z",
|
68
|
+
"web_url": "https://gitlab-instance.example.com/username/danger-test-repo/-/pipelines/123456"
|
69
|
+
},
|
70
|
+
"web_url": "https://git.jbeckmann.info/kingjan1999/danger-test-repo/-/jobs/2722",
|
71
|
+
"project": {
|
72
|
+
"ci_job_token_scope_enabled": false
|
73
|
+
},
|
74
|
+
"artifacts": [
|
75
|
+
{
|
76
|
+
"file_type": "trace",
|
77
|
+
"size": 2576,
|
78
|
+
"filename": "job.log",
|
79
|
+
"file_format": null
|
80
|
+
}
|
81
|
+
],
|
82
|
+
"runner": {
|
83
|
+
"id": 5,
|
84
|
+
"description": "7171d2237404",
|
85
|
+
"ip_address": "172.18.0.3",
|
86
|
+
"active": true,
|
87
|
+
"paused": false,
|
88
|
+
"is_shared": false,
|
89
|
+
"runner_type": "project_type",
|
90
|
+
"name": "gitlab-runner",
|
91
|
+
"online": true,
|
92
|
+
"status": "online"
|
93
|
+
},
|
94
|
+
"artifacts_expire_at": null,
|
95
|
+
"tag_list": []
|
96
|
+
}
|
97
|
+
]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": 1119,
|
4
|
+
"iid": 1,
|
5
|
+
"project_id": 216,
|
6
|
+
"sha": "b23f54ecdc3add9abea9344f66b49f1699bff547",
|
7
|
+
"ref": "main",
|
8
|
+
"status": "success",
|
9
|
+
"source": "push",
|
10
|
+
"created_at": "2022-10-03T12:35:08.872Z",
|
11
|
+
"updated_at": "2022-10-03T12:39:15.573Z",
|
12
|
+
"web_url": "https://gitlab-instance.com/danger-test-repo/-/pipelines/1115"
|
13
|
+
}
|
14
|
+
]
|
@@ -0,0 +1,49 @@
|
|
1
|
+
[0KRunning with gitlab-runner 15.4.0 (43b2dc3d)[0;m
|
2
|
+
[0K on 7171d2237404 41ce2754[0;m
|
3
|
+
section_start:1664803959:prepare_executor
|
4
|
+
[0K[0K[36;1mPreparing the "docker" executor[0;m[0;m
|
5
|
+
[0KUsing Docker executor with image busybox:latest ...[0;m
|
6
|
+
[0KPulling docker image busybox:latest ...[0;m
|
7
|
+
[0KUsing docker image sha256:2bd29714875d9206777f9e8876033cbcd58edd14f2c0f1203435296b3f31c5f7 for busybox:latest with digest busybox@sha256:ad9bd57a3a57cc95515c537b89aaa69d83a6df54c4050fcf2b41ad367bec0cd5 ...[0;m
|
8
|
+
section_end:1664803963:prepare_executor
|
9
|
+
[0Ksection_start:1664803963:prepare_script
|
10
|
+
[0K[0K[36;1mPreparing environment[0;m[0;m
|
11
|
+
Running on runner-41ce2754-project-216-concurrent-0 via 0e9c9113aa94...
|
12
|
+
section_end:1664803963:prepare_script
|
13
|
+
[0Ksection_start:1664803963:get_sources
|
14
|
+
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
|
15
|
+
[32;1mFetching changes with git depth set to 20...[0;m
|
16
|
+
Reinitialized existing Git repository in /builds/username/danger-test-repo/.git/
|
17
|
+
[32;1mChecking out c54d9bac as main...[0;m
|
18
|
+
|
19
|
+
[32;1mSkipping Git submodules setup[0;m
|
20
|
+
section_end:1664803965:get_sources
|
21
|
+
[0Ksection_start:1664803965:step_script
|
22
|
+
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
|
23
|
+
[0KUsing docker image sha256:2bd29714875d9206777f9e8876033cbcd58edd14f2c0f1203435296b3f31c5f7 for busybox:latest with digest busybox@sha256:ad9bd57a3a57cc95515c537b89aaa69d83a6df54c4050fcf2b41ad367bec0cd5 ...[0;m
|
24
|
+
[32;1m$ echo "Before script section"[0;m
|
25
|
+
Before script section
|
26
|
+
[32;1m$ echo "For example you might run an update here or install a build dependency"[0;m
|
27
|
+
For example you might run an update here or install a build dependency
|
28
|
+
[32;1m$ echo "Or perhaps you might print out some debugging details"[0;m
|
29
|
+
Or perhaps you might print out some debugging details
|
30
|
+
[32;1m$ echo "Do a test here"[0;m
|
31
|
+
Do a test here
|
32
|
+
[32;1m$ echo "For example run a test suite"[0;m
|
33
|
+
For example run a test suite
|
34
|
+
[32;1m$ echo "Test took $((1 + $RANDOM % 10))s"[0;m
|
35
|
+
Test took 16s
|
36
|
+
Test slept 4s
|
37
|
+
section_end:1664803966:step_script
|
38
|
+
[0Ksection_start:1664803966:after_script
|
39
|
+
[0K[0K[36;1mRunning after_script[0;m[0;m
|
40
|
+
[32;1mRunning after script...[0;m
|
41
|
+
[32;1m$ echo "After script section"[0;m
|
42
|
+
After script section
|
43
|
+
[32;1m$ echo "For example you might do some cleanup here"[0;m
|
44
|
+
For example you might do some cleanup here
|
45
|
+
section_end:1664803967:after_script
|
46
|
+
[0Ksection_start:1664803967:cleanup_file_variables
|
47
|
+
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
|
48
|
+
section_end:1664803967:cleanup_file_variables
|
49
|
+
[0K[32;1mJob succeeded[0;m
|
@@ -0,0 +1,49 @@
|
|
1
|
+
[0KRunning with gitlab-runner 15.4.0 (43b2dc3d)[0;m
|
2
|
+
[0K on 7171d2237404 41ce2754[0;m
|
3
|
+
section_start:1664803959:prepare_executor
|
4
|
+
[0K[0K[36;1mPreparing the "docker" executor[0;m[0;m
|
5
|
+
[0KUsing Docker executor with image busybox:latest ...[0;m
|
6
|
+
[0KPulling docker image busybox:latest ...[0;m
|
7
|
+
[0KUsing docker image sha256:2bd29714875d9206777f9e8876033cbcd58edd14f2c0f1203435296b3f31c5f7 for busybox:latest with digest busybox@sha256:ad9bd57a3a57cc95515c537b89aaa69d83a6df54c4050fcf2b41ad367bec0cd5 ...[0;m
|
8
|
+
section_end:1664803963:prepare_executor
|
9
|
+
[0Ksection_start:1664803963:prepare_script
|
10
|
+
[0K[0K[36;1mPreparing environment[0;m[0;m
|
11
|
+
Running on runner-41ce2754-project-216-concurrent-0 via 0e9c9113aa94...
|
12
|
+
section_end:1664803963:prepare_script
|
13
|
+
[0Ksection_start:1664803963:get_sources
|
14
|
+
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
|
15
|
+
[32;1mFetching changes with git depth set to 20...[0;m
|
16
|
+
Reinitialized existing Git repository in /builds/username/danger-test-repo/.git/
|
17
|
+
[32;1mChecking out c54d9bac as main...[0;m
|
18
|
+
|
19
|
+
[32;1mSkipping Git submodules setup[0;m
|
20
|
+
section_end:1664803965:get_sources
|
21
|
+
[0Ksection_start:1664803965:step_script
|
22
|
+
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
|
23
|
+
[0KUsing docker image sha256:2bd29714875d9206777f9e8876033cbcd58edd14f2c0f1203435296b3f31c5f7 for busybox:latest with digest busybox@sha256:ad9bd57a3a57cc95515c537b89aaa69d83a6df54c4050fcf2b41ad367bec0cd5 ...[0;m
|
24
|
+
[32;1m$ echo "Before script section"[0;m
|
25
|
+
Before script section
|
26
|
+
[32;1m$ echo "For example you might run an update here or install a build dependency"[0;m
|
27
|
+
For example you might run an update here or install a build dependency
|
28
|
+
[32;1m$ echo "Or perhaps you might print out some debugging details"[0;m
|
29
|
+
Or perhaps you might print out some debugging details
|
30
|
+
[32;1m$ echo "Do a test here"[0;m
|
31
|
+
Do a test here
|
32
|
+
[32;1m$ echo "For example run a test suite"[0;m
|
33
|
+
For example run a test suite
|
34
|
+
[32;1m$ echo "Test took $((1 + $RANDOM % 10))s"[0;m
|
35
|
+
Test took 6s
|
36
|
+
Test slept 14s
|
37
|
+
section_end:1664803966:step_script
|
38
|
+
[0Ksection_start:1664803966:after_script
|
39
|
+
[0K[0K[36;1mRunning after_script[0;m[0;m
|
40
|
+
[32;1mRunning after script...[0;m
|
41
|
+
[32;1m$ echo "After script section"[0;m
|
42
|
+
After script section
|
43
|
+
[32;1m$ echo "For example you might do some cleanup here"[0;m
|
44
|
+
For example you might do some cleanup here
|
45
|
+
section_end:1664803967:after_script
|
46
|
+
[0Ksection_start:1664803967:cleanup_file_variables
|
47
|
+
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
|
48
|
+
section_end:1664803967:cleanup_file_variables
|
49
|
+
[0K[32;1mJob succeeded[0;m
|