Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
4841eceb
Unverified
Commit
4841eceb
authored
Oct 31, 2023
by
Ralph Weires
Committed by
GitHub
Oct 31, 2023
Browse files
Add name attribute to Pipeline class (#1048)
parent
76468762
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/Pipeline.java
View file @
4841eceb
...
@@ -28,6 +28,7 @@ public class Pipeline {
...
@@ -28,6 +28,7 @@ public class Pipeline {
private
Float
queuedDuration
;
private
Float
queuedDuration
;
private
String
webUrl
;
private
String
webUrl
;
private
DetailedStatus
detailedStatus
;
private
DetailedStatus
detailedStatus
;
private
String
name
;
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
...
@@ -277,6 +278,14 @@ public class Pipeline {
...
@@ -277,6 +278,14 @@ public class Pipeline {
this
.
detailedStatus
=
detailedStatus
;
this
.
detailedStatus
=
detailedStatus
;
}
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
return
(
JacksonJson
.
toJsonString
(
this
));
...
...
src/test/resources/org/gitlab4j/api/pipeline.json
View file @
4841eceb
...
@@ -32,5 +32,6 @@
...
@@ -32,5 +32,6 @@
"favicon"
:
"/assets/ci_favicons/favicon_status_pending-5bdf338420e5221ca24353b6bff1c9367189588750632e9a871b7af09ff6a2ae.png"
"favicon"
:
"/assets/ci_favicons/favicon_status_pending-5bdf338420e5221ca24353b6bff1c9367189588750632e9a871b7af09ff6a2ae.png"
},
},
"coverage"
:
"30.0"
,
"coverage"
:
"30.0"
,
"web_url"
:
"https://example.com/foo/bar/pipelines/46"
"web_url"
:
"https://example.com/foo/bar/pipelines/46"
,
"name"
:
"Custom pipeline name"
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment