summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorMond WAN <mondwan@users.noreply.github.com>2017-03-18 16:48:11 +0800
committerGauvain Pocentek <gauvain@pocentek.net>2017-03-18 09:48:11 +0100
commit8c27e70b821e02921dfec4f8e4c6b77b5b284009 (patch)
treed0b8bfc36fbf7d74e6b2200aede3a85a863e2305 /gitlab/objects.py
parent3b388447fecab4d86a3387178bfb2876776d7567 (diff)
downloadgitlab-8c27e70b821e02921dfec4f8e4c6b77b5b284009.tar.gz
Implement pipeline creation API (#237)
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 4790712..119671c 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1991,10 +1991,14 @@ class ProjectFileManager(BaseManager):
class ProjectPipeline(GitlabObject):
_url = '/projects/%(project_id)s/pipelines'
- canCreate = False
+ _create_url = '/projects/%(project_id)s/pipeline'
+
canUpdate = False
canDelete = False
+ requiredUrlAttrs = ['project_id']
+ requiredCreateAttrs = ['ref']
+
def retry(self, **kwargs):
"""Retries failed builds in a pipeline.