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
346a02a0
Unverified
Commit
346a02a0
authored
May 16, 2024
by
Clayton Walker
Committed by
GitHub
May 16, 2024
Browse files
Change the type of ids to be Long (#1113)
Co-authored-by:
Clayton Walker
<
cwalker@sofi.org
>
parent
c5dbbd28
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/PipelineApi.java
View file @
346a02a0
...
...
@@ -10,6 +10,7 @@ import javax.ws.rs.core.GenericType;
import
javax.ws.rs.core.Response
;
import
org.gitlab4j.api.models.Bridge
;
import
org.gitlab4j.api.models.Job
;
import
org.gitlab4j.api.models.Pipeline
;
import
org.gitlab4j.api.models.PipelineFilter
;
import
org.gitlab4j.api.models.PipelineSchedule
;
...
...
@@ -858,6 +859,35 @@ public class PipelineApi extends AbstractApi implements Constants {
return
(
getPipelineVariables
(
projectIdOrPath
,
pipelineId
,
getDefaultPerPage
()).
stream
());
}
/**
* Get a List of bridges in a pipeline.
*
* <pre><code>GitLab Endpoint: GET /projects/:id/pipelines/:pipeline_id/bridges </code></pre>
*
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the pipelines for
* @param pipelineId the pipeline ID to get the list of bridges for
* @return a list containing the bridges for the specified project ID and pipeline ID
* @throws GitLabApiException if any exception occurs during execution
*/
public
List
<
Bridge
>
getBridgesForPipeline
(
Object
projectIdOrPath
,
long
pipelineId
)
throws
GitLabApiException
{
return
(
getBridgesForPipeline
(
projectIdOrPath
,
pipelineId
,
getDefaultPerPage
(),
null
).
all
());
}
/**
* Get a List of bridges in a pipeline.
*
* <pre><code>GitLab Endpoint: GET /projects/:id/pipelines/:pipeline_id/bridges </code></pre>
*
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the pipelines for
* @param pipelineId the pipeline ID to get the list of bridges for
* @param scope the scope of the jobs to list
* @return a list containing the bridges for the specified project ID and pipeline ID
* @throws GitLabApiException if any exception occurs during execution
*/
public
List
<
Bridge
>
getBridgesForPipeline
(
Object
projectIdOrPath
,
long
pipelineId
,
JobScope
scope
)
throws
GitLabApiException
{
return
(
getBridgesForPipeline
(
projectIdOrPath
,
pipelineId
,
getDefaultPerPage
(),
scope
).
all
());
}
/**
* Get a Pager of bridges in a pipeline.
*
...
...
@@ -866,6 +896,7 @@ public class PipelineApi extends AbstractApi implements Constants {
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path to get the pipelines for
* @param pipelineId the pipeline ID to get the list of bridges for
* @param itemsPerPage the number of Bridge instances that will be fetched per page
* @param scope the scope of the jobs to list
* @return a list containing the bridges for the specified project ID and pipeline ID
* @throws GitLabApiException if any exception occurs during execution
*/
...
...
src/main/java/org/gitlab4j/api/models/Bridge.java
View file @
346a02a0
...
...
@@ -16,7 +16,7 @@ public class Bridge implements Serializable {
private
Date
erasedAt
;
private
Double
duration
;
private
Double
queuedDuration
;
private
int
id
;
private
Long
id
;
private
String
name
;
private
String
coverage
;
private
Pipeline
pipeline
;
...
...
@@ -92,11 +92,11 @@ public class Bridge implements Serializable {
this
.
queuedDuration
=
queuedDuration
;
}
public
int
getId
()
{
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
...
...
src/main/java/org/gitlab4j/api/models/DownstreamPipeline.java
View file @
346a02a0
...
...
@@ -8,7 +8,7 @@ import java.util.Date;
public
class
DownstreamPipeline
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
int
id
;
private
Long
id
;
private
String
sha
;
private
String
ref
;
private
String
status
;
...
...
@@ -16,11 +16,11 @@ public class DownstreamPipeline implements Serializable {
private
Date
updatedAt
;
private
String
webUrl
;
public
int
getId
()
{
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
...
...
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