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
This commit is contained in:
commit
2ec58d4a74
1 changed files with 6 additions and 0 deletions
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in a new issue