diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-04-27 19:24:18 +0000 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-04-27 19:24:18 +0000 |
commit | 2ec58d4a74c5805ef09b9472cecb3d6d9465a5f2 (patch) | |
tree | 8e2041928846ce8e0c9dce0cc58634faeb968840 | |
parent | 0863644a90008d3433348107c77e8dea76d5a22b (diff) | |
parent | 7c9233856e9f14f48811dc5678e98a036f2fa0de (diff) | |
download | gitlab-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.md | 6 |
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` |