summaryrefslogtreecommitdiff
path: root/docs/gl_objects
diff options
context:
space:
mode:
authorAgustin Henze <tin@redhat.com>2019-05-29 12:44:36 +0200
committerAgustin Henze <tin@redhat.com>2019-06-10 13:04:52 +0200
commit564de484f5ef4c76261057d3d2207dc747da020b (patch)
tree0a67a70e67f376cf59437245edaf44b835d01ac2 /docs/gl_objects
parent794d64c8ef8ef0448205b51ff4a25c1589c2b2dd (diff)
downloadgitlab-564de484f5ef4c76261057d3d2207dc747da020b.tar.gz
feat: add endpoint to get the variables of a pipeline
It adds a new endpoint which was released in the Gitlab CE 11.11. Signed-off-by: Agustin Henze <tin@redhat.com>
Diffstat (limited to 'docs/gl_objects')
-rw-r--r--docs/gl_objects/builds.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/gl_objects/builds.rst b/docs/gl_objects/builds.rst
index ee45090..dfb9acc 100644
--- a/docs/gl_objects/builds.rst
+++ b/docs/gl_objects/builds.rst
@@ -29,6 +29,10 @@ Get a pipeline for a project::
pipeline = project.pipelines.get(pipeline_id)
+Get variables of a pipeline::
+
+ variables = pipeline.variables.list()
+
Create a pipeline for a particular reference::
pipeline = project.pipelines.create({'ref': 'master'})