diff options
author | David de Boer <david@ddeboer.nl> | 2016-04-27 16:41:37 +0200 |
---|---|---|
committer | David de Boer <david@ddeboer.nl> | 2016-04-27 16:41:37 +0200 |
commit | 7c9233856e9f14f48811dc5678e98a036f2fa0de (patch) | |
tree | f7744a61b32ddd914b952b0d1c58c037f531d05f /doc/ci/triggers | |
parent | 6c0ed6399054db00d8abcc33ad2aa7df59de52bf (diff) | |
download | gitlab-ce-7c9233856e9f14f48811dc5678e98a036f2fa0de.tar.gz |
Add API doc example with query string for triggering build
Diffstat (limited to 'doc/ci/triggers')
-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` |