diff options
author | Vitali Ulantsau <vulantsauep@sofi.org> | 2019-10-31 17:13:27 +0300 |
---|---|---|
committer | Vitali Ulantsau <vulantsauep@sofi.org> | 2019-10-31 18:59:55 +0300 |
commit | b275eb03c5954ca24f249efad8125d1eacadd3ac (patch) | |
tree | d16867b25ba1e35043d2cef9541eba6daf4b877b /docs/gl_objects | |
parent | fddc25adac16a74f61d81871f9ae13c0227d92d6 (diff) | |
download | gitlab-b275eb03c5954ca24f249efad8125d1eacadd3ac.tar.gz |
docs(pipelines_and_jobs): add pipeline custom variables usage example
Diffstat (limited to 'docs/gl_objects')
-rw-r--r-- | docs/gl_objects/pipelines_and_jobs.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/gl_objects/pipelines_and_jobs.rst b/docs/gl_objects/pipelines_and_jobs.rst index a62d798..30b45f2 100644 --- a/docs/gl_objects/pipelines_and_jobs.rst +++ b/docs/gl_objects/pipelines_and_jobs.rst @@ -33,9 +33,9 @@ Get variables of a pipeline:: variables = pipeline.variables.list() -Create a pipeline for a particular reference:: +Create a pipeline for a particular reference with custom variables:: - pipeline = project.pipelines.create({'ref': 'master'}) + pipeline = project.pipelines.create({'ref': 'master', 'variables': [{'key': 'MY_VARIABLE', 'value': 'hello'}]}) Retry the failed builds for a pipeline:: |