File tree Expand file tree Collapse file tree 4 files changed +49
-5
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api Expand file tree Collapse file tree 4 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public class Commit {
26
26
private String title ;
27
27
private String url ;
28
28
private String webUrl ;
29
+ private Long projectId ;
29
30
private Pipeline lastPipeline ;
30
31
31
32
public Author getAuthor () {
@@ -172,6 +173,14 @@ public void setWebUrl(String webUrl) {
172
173
this .webUrl = webUrl ;
173
174
}
174
175
176
+ public Long getProjectId () {
177
+ return projectId ;
178
+ }
179
+
180
+ public void setProjectId (Long projectId ) {
181
+ this .projectId = projectId ;
182
+ }
183
+
175
184
public Pipeline getLastPipeline () {
176
185
return lastPipeline ;
177
186
}
Original file line number Diff line number Diff line change 8
8
public class Pipeline {
9
9
10
10
private Long id ;
11
+ private Long iid ;
11
12
private Long projectId ;
12
13
private PipelineStatus status ;
14
+ private String source ;
13
15
private String ref ;
14
16
private String sha ;
15
17
private String beforeSha ;
@@ -35,6 +37,14 @@ public void setId(Long id) {
35
37
this .id = id ;
36
38
}
37
39
40
+ public Long getIid () {
41
+ return iid ;
42
+ }
43
+
44
+ public void setIid (Long iid ) {
45
+ this .iid = iid ;
46
+ }
47
+
38
48
public Long getProjectId () {
39
49
return projectId ;
40
50
}
@@ -51,6 +61,14 @@ public void setStatus(PipelineStatus status) {
51
61
this .status = status ;
52
62
}
53
63
64
+ public String getSource () {
65
+ return source ;
66
+ }
67
+
68
+ public void setSource (String source ) {
69
+ this .source = source ;
70
+ }
71
+
54
72
public String getRef () {
55
73
return ref ;
56
74
}
Original file line number Diff line number Diff line change 20
20
},
21
21
"status" : " running" ,
22
22
"url" : " http://localhost/diaspora/diaspora-project-site/-/commit/9df4dd1f0dfae80c05eac4b2bd461b86db5c8e2d" ,
23
- "web_url" : " http://localhost/diaspora/diaspora-project-site/-/commit/9df4dd1f0dfae80c05eac4b2bd461b86db5c8e2d"
23
+ "web_url" : " http://localhost/diaspora/diaspora-project-site/-/commit/9df4dd1f0dfae80c05eac4b2bd461b86db5c8e2d" ,
24
+ "project_id" : 15 ,
25
+ "last_pipeline" : {
26
+ "id" : 16282 ,
27
+ "iid" : 688 ,
28
+ "project_id" : 15 ,
29
+ "sha" : " 6104942438c14ec7bd21c6cd5bd995272b3faff6" ,
30
+ "ref" : " patch-1" ,
31
+ "status" : " success" ,
32
+ "source" : " external" ,
33
+ "created_at" : " 2023-04-03T21:17:04.026Z" ,
34
+ "updated_at" : " 2023-04-03T21:17:04.157Z" ,
35
+ "web_url" : " http://localhost/diaspora/diaspora-project-site/-/pipelines/16282"
36
+ }
24
37
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : 46 ,
3
+ "iid" : 11 ,
4
+ "project_id" : 1 ,
3
5
"status" : " success" ,
4
- "web_url" : " http://3cb4fb3163d4/gitlab4j/test-project/pipelines/66" ,
5
- "ref" : " master" ,
6
+ "ref" : " main" ,
6
7
"sha" : " a91957a858320c0e17f3a0eca7cfacbff50ea29a" ,
7
8
"before_sha" : " a91957a858320c0e17f3a0eca7cfacbff50ea29a" ,
8
9
"tag" : false ,
10
+ "yaml_errors" : " Included file `.gitlab-ci.yml` does not have valid YAML syntax!" ,
9
11
"user" : {
10
12
"name" : " Administrator" ,
11
13
"username" : " root" ,
17
19
"created_at" : " 2016-08-11T11:28:34.085Z" ,
18
20
"updated_at" : " 2016-08-11T11:32:35.169Z" ,
19
21
"finished_at" : " 2016-08-11T11:32:35.145Z" ,
20
- "coverage " : " 30.0 " ,
22
+ "duration " : 123 ,
21
23
"queued_duration" : 0.010 ,
22
24
"detailed_status" : {
23
25
"icon" : " status_pending" ,
28
30
"has_details" : true ,
29
31
"details_path" : " /gitlab4j/test-project/pipelines/66" ,
30
32
"favicon" : " /assets/ci_favicons/favicon_status_pending-5bdf338420e5221ca24353b6bff1c9367189588750632e9a871b7af09ff6a2ae.png"
31
- }
33
+ },
34
+ "coverage" : " 30.0" ,
35
+ "web_url" : " https://example.com/foo/bar/pipelines/46"
32
36
}
You can’t perform that action at this time.
0 commit comments