diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-11-10 13:09:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-10 13:09:41 +0100 |
commit | 4efa6e6e5b9b57a3c4eda9ef20a4194b384055dc (patch) | |
tree | 1e22fbb67c5ada10805f2bda8f35ee1e44641456 /docs/gl_objects | |
parent | 1f182302c206502f5202d1707fef69adf527fea7 (diff) | |
parent | b275eb03c5954ca24f249efad8125d1eacadd3ac (diff) | |
download | gitlab-4efa6e6e5b9b57a3c4eda9ef20a4194b384055dc.tar.gz |
Merge pull request #929 from SVLay/docs/pipeline-variables
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:: |