Commit 0905b991 authored by Aljaz Starc's avatar Aljaz Starc Committed by Marcel Amirault

Replace values with bellow-mentioned variables

in doc/ci/triggers:webhook URL
parent 6ad45bff
...@@ -104,20 +104,18 @@ To trigger a pipeline from another project's webhook, use a webhook URL like the ...@@ -104,20 +104,18 @@ To trigger a pipeline from another project's webhook, use a webhook URL like the
for push and tag events: for push and tag events:
```plaintext ```plaintext
https://gitlab.example.com/api/v4/projects/9/ref/main/trigger/pipeline?token=TOKEN https://gitlab.example.com/api/v4/projects/<project_id>/ref/<ref_name>/trigger/pipeline?token=<token>
``` ```
Replace: Replace:
- The URL with `https://gitlab.com` or the URL of your instance. - The URL with `https://gitlab.com` or the URL of your instance.
- `<token>` with your trigger token.
- `<ref_name>` with a branch or tag name, like `main`.
- `<project_id>` with your project ID, like `123456`. The project ID is displayed - `<project_id>` with your project ID, like `123456`. The project ID is displayed
at the top of the project's landing page. at the top of the project's landing page.
- `<ref_name>` with a branch or tag name, like `main`. This value takes precedence over the `ref_name` in the webhook payload.
The `ref` in the URL takes precedence over the `ref` in the webhook payload. The The payload's `ref` is the branch that fired the trigger in the source repository.
payload `ref` is the branch that fired the trigger in the source repository. You must URL-encode the `ref_name` if it contains slashes.
You must URL-encode `ref` if it contains slashes. - `<token>` with your trigger token.
#### Use a webhook payload #### Use a webhook payload
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment