Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid de Boer <david@ddeboer.nl>2016-04-27 17:41:37 +0300
committerDavid de Boer <david@ddeboer.nl>2016-04-27 17:41:37 +0300
commit7c9233856e9f14f48811dc5678e98a036f2fa0de (patch)
treef7744a61b32ddd914b952b0d1c58c037f531d05f /doc
parent6c0ed6399054db00d8abcc33ad2aa7df59de52bf (diff)
Add API doc example with query string for triggering build
Diffstat (limited to 'doc')
-rw-r--r--doc/ci/triggers/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ci/triggers/README.md b/doc/ci/triggers/README.md
index 9f7c1bfe6a0..79ed512aabb 100644
--- a/doc/ci/triggers/README.md
+++ b/doc/ci/triggers/README.md
@@ -85,6 +85,12 @@ curl -X POST \
In this case, the project with ID `9` will get rebuilt on `master` branch.
+Alternatively, you can pass the `token` and `ref` arguments in the query string:
+
+```bash
+curl -X POST \
+ "https://gitlab.example.com/api/v3/projects/9/trigger/builds?token=TOKEN&ref=master"
+```
### Triggering a build within `.gitlab-ci.yml`