Unverified Commit 4efa6e6e authored by Max Wittig's avatar Max Wittig 🌍 Committed by GitHub
Browse files

Merge pull request #929 from SVLay/docs/pipeline-variables

docs(pipelines_and_jobs): add pipeline custom variables usage example
parents 1f182302 b275eb03
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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::