Skip to content

Commit fd726cd

Browse files
mlqGauvain Pocentek
authored and
Gauvain Pocentek
committed
Project pipeline jobs
1 parent 31eb913 commit fd726cd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gitlab/v4/objects.py

+12
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,18 @@ def raw(self, file_path, ref, streamed=False, action=None, chunk_size=1024,
19521952
return utils.response_content(result, streamed, action, chunk_size)
19531953

19541954

1955+
class ProjectPipelineJob(ProjectJob):
1956+
pass
1957+
1958+
1959+
class ProjectPipelineJobsManager(ListMixin, RESTManager):
1960+
_path = '/projects/%(project_id)s/pipelines/%(pipeline_id)s/jobs'
1961+
_obj_cls = ProjectPipelineJob
1962+
_from_parent_attrs = {'project_id': 'project_id',
1963+
'pipeline_id' : 'id'}
1964+
_list_filters = ('scope',)
1965+
1966+
19551967
class ProjectPipeline(RESTObject):
19561968
_managers = (('jobs', 'ProjectPipelineJobManager'), )
19571969

0 commit comments

Comments
 (0)