Commit 133a3ee8 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'aljaxus-master-patch-51876' into 'master'

Replace values with bellow-mentioned variables

See merge request gitlab-org/gitlab!77709
parents 6ad45bff 0905b991
...@@ -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