Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0905b991
Commit
0905b991
authored
Jan 07, 2022
by
Aljaz Starc
Committed by
Marcel Amirault
Jan 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace values with bellow-mentioned variables
in doc/ci/triggers:webhook URL
parent
6ad45bff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
doc/ci/triggers/index.md
doc/ci/triggers/index.md
+5
-7
No files found.
doc/ci/triggers/index.md
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment