summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-04-27 19:24:18 +0000
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-04-27 19:24:18 +0000
commit2ec58d4a74c5805ef09b9472cecb3d6d9465a5f2 (patch)
tree8e2041928846ce8e0c9dce0cc58634faeb968840
parent0863644a90008d3433348107c77e8dea76d5a22b (diff)
parent7c9233856e9f14f48811dc5678e98a036f2fa0de (diff)
downloadgitlab-ce-2ec58d4a74c5805ef09b9472cecb3d6d9465a5f2.tar.gz
Merge branch 'trigger-query-string' into 'master'
Add API doc example with query string for triggering build Make this explicit to prevent confusion as we saw in gitlab-org/gitlab-ci#413. See merge request !3947
-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`