summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorMoritz Lipp <moritz.lipp@iaik.tugraz.at>2017-10-13 14:17:40 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-02-05 15:43:56 +0100
commitfd726cdb61a78aafb780cae56a7909e7b648e4dc (patch)
treeabc70d57f3cc285490f18132f99a38d3c5e67e0d /gitlab/v4/objects.py
parent31eb913be34f8dea0c4b1f8396b74bb74b32a6f0 (diff)
downloadgitlab-fd726cdb61a78aafb780cae56a7909e7b648e4dc.tar.gz
Project pipeline jobs
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index ea35bc7..19adb62 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1952,6 +1952,18 @@ class ProjectFileManager(GetMixin, CreateMixin, UpdateMixin, DeleteMixin,
return utils.response_content(result, streamed, action, chunk_size)
+class ProjectPipelineJob(ProjectJob):
+ pass
+
+
+class ProjectPipelineJobsManager(ListMixin, RESTManager):
+ _path = '/projects/%(project_id)s/pipelines/%(pipeline_id)s/jobs'
+ _obj_cls = ProjectPipelineJob
+ _from_parent_attrs = {'project_id': 'project_id',
+ 'pipeline_id' : 'id'}
+ _list_filters = ('scope',)
+
+
class ProjectPipeline(RESTObject):
_managers = (('jobs', 'ProjectPipelineJobManager'), )