Skip to content
Snippets Groups Projects
Commit 7c923385 authored by David de Boer's avatar David de Boer
Browse files

Add API doc example with query string for triggering build

parent 6c0ed639
No related branches found
No related tags found
No related merge requests found
Loading
@@ -85,6 +85,12 @@ curl -X POST \
Loading
@@ -85,6 +85,12 @@ curl -X POST \
   
In this case, the project with ID `9` will get rebuilt on `master` branch. 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` ### Triggering a build within `.gitlab-ci.yml`
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment