Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2848455

Browse files
committed
add "list pipeline jobs" handler
as described here:https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-jobsexample:`jobs = pipeline.jobs.list()`
1 parent084b905 commit2848455

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎gitlab/v4/objects.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,10 @@ def raw(self, file_path, ref, streamed=False, action=None, chunk_size=1024,
17071707

17081708

17091709
classProjectPipeline(RESTObject):
1710+
_managers= (
1711+
('jobs','PipelineJobManager'),
1712+
)
1713+
17101714
@cli.register_custom_action('ProjectPipeline')
17111715
@exc.on_http_error(exc.GitlabPipelineCancelError)
17121716
defcancel(self,**kwargs):
@@ -1764,6 +1768,12 @@ def create(self, data, **kwargs):
17641768
returnCreateMixin.create(self,data,path=path,**kwargs)
17651769

17661770

1771+
classPipelineJobManager(ListMixin,RESTManager):
1772+
_path='/projects/%(project_id)s/pipelines/%(pipeline_id)s/jobs'
1773+
_obj_cls=ProjectJob
1774+
_from_parent_attrs= {'project_id':'project_id','pipeline_id':'id'}
1775+
1776+
17671777
classProjectSnippetNote(SaveMixin,ObjectDeleteMixin,RESTObject):
17681778
pass
17691779

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp