diff options
author | Mond WAN <mondwan@users.noreply.github.com> | 2017-03-18 16:48:11 +0800 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-03-18 09:48:11 +0100 |
commit | 8c27e70b821e02921dfec4f8e4c6b77b5b284009 (patch) | |
tree | d0b8bfc36fbf7d74e6b2200aede3a85a863e2305 /docs/gl_objects | |
parent | 3b388447fecab4d86a3387178bfb2876776d7567 (diff) | |
download | gitlab-8c27e70b821e02921dfec4f8e4c6b77b5b284009.tar.gz |
Implement pipeline creation API (#237)
Diffstat (limited to 'docs/gl_objects')
-rw-r--r-- | docs/gl_objects/projects.py | 6 | ||||
-rw-r--r-- | docs/gl_objects/projects.rst | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py index 54bde84..4412f22 100644 --- a/docs/gl_objects/projects.py +++ b/docs/gl_objects/projects.py @@ -400,6 +400,12 @@ pipeline = gl.project_pipelines.get(pipeline_id, project_id=1) pipeline = project.pipelines.get(pipeline_id) # end pipeline get +# pipeline create +pipeline = gl.project_pipelines.create({'project_id': 1, 'ref': 'master'}) +# or +pipeline = project.pipelines.create({'ref': 'master'}) +# end pipeline create + # pipeline retry pipeline.retry() # end pipeline retry diff --git a/docs/gl_objects/projects.rst b/docs/gl_objects/projects.rst index dc6c48b..300b848 100644 --- a/docs/gl_objects/projects.rst +++ b/docs/gl_objects/projects.rst @@ -438,6 +438,12 @@ Cancel builds in a pipeline: :start-after: # pipeline cancel :end-before: # end pipeline cancel +Create a pipeline for a particular reference: + +.. literalinclude:: projects.py + :start-after: # pipeline create + :end-before: # end pipeline create + Services -------- |