Skip to content

Commit 2d2e49d

Browse files
authored
Pipeline triggering examples with a request with pipeline variables (#1208)
1 parent f0eee78 commit 2d2e49d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/bitbucket.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ Pipelines management
434434
# Trigger specific Pipeline on a specific revision of the master branch
435435
r.pipelines.trigger(revision="<40-char hash>", name="style-check")
436436
437+
# Trigger specific Pipeline of the master branch with specific variables
438+
r.pipelines.trigger(name="style-check", variables=[{ "key": "var-name", "value": "var-value" }])
439+
437440
# Get specific Pipeline by UUID
438441
pl = r.pipelines.get("{7d6c327d-6336-4721-bfeb-c24caf25045c}")
439442

0 commit comments

Comments
 (0)