Skip to content

Commit b861837

Browse files
committed
Project pipeline jobs
1 parent 34e32a0 commit b861837

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

gitlab/v4/objects.py

+16
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,23 @@ def raw(self, file_path, ref, streamed=False, action=None, chunk_size=1024,
17061706
return utils.response_content(result, streamed, action, chunk_size)
17071707

17081708

1709+
class ProjectPipelineJob(ProjectJob):
1710+
pass
1711+
1712+
1713+
class ProjectPipelineJobsManager(ListMixin, RESTManager):
1714+
_path = '/projects/%(project_id)s/pipelines/%(pipeline_id)s/jobs'
1715+
_obj_cls = ProjectPipelineJob
1716+
_from_parent_attrs = {'project_id': 'project_id',
1717+
'pipeline_id' : 'id'}
1718+
_list_filters = ('scope',)
1719+
1720+
17091721
class ProjectPipeline(RESTObject):
1722+
_managers = (
1723+
('jobs', 'ProjectPipelineJobsManager'),
1724+
)
1725+
17101726
@cli.register_custom_action('ProjectPipeline')
17111727
@exc.on_http_error(exc.GitlabPipelineCancelError)
17121728
def cancel(self, **kwargs):

0 commit comments

Comments
 (0)