Skip to content

Commit b275eb0

Browse files
author
Vitali Ulantsau
committed
docs(pipelines_and_jobs): add pipeline custom variables usage example
1 parent fddc25a commit b275eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/gl_objects/pipelines_and_jobs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Get variables of a pipeline::
3333

3434
variables = pipeline.variables.list()
3535

36-
Create a pipeline for a particular reference::
36+
Create a pipeline for a particular reference with custom variables::
3737

38-
pipeline = project.pipelines.create({'ref': 'master'})
38+
pipeline = project.pipelines.create({'ref': 'master', 'variables': [{'key': 'MY_VARIABLE', 'value': 'hello'}]})
3939

4040
Retry the failed builds for a pipeline::
4141

0 commit comments

Comments
 (0)