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
74bda059
Commit
74bda059
authored
Mar 28, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
088d6a1f
0795a27f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
doc/user/project/integrations/webhooks.md
doc/user/project/integrations/webhooks.md
+15
-15
No files found.
doc/user/project/integrations/webhooks.md
View file @
74bda059
...
@@ -48,7 +48,7 @@ Navigate to the webhooks page by going to your project's
...
@@ -48,7 +48,7 @@ Navigate to the webhooks page by going to your project's
## Use-cases
## Use-cases
-
You can set up a webhook in GitLab to send a notification to
-
You can set up a webhook in GitLab to send a notification to
[
Slack
](
https://api.slack.com/incoming-webhooks
)
every time a
build fails, for example
[
Slack
](
https://api.slack.com/incoming-webhooks
)
every time a
job fails.
-
You can
[
integrate with Twilio to be notified via SMS
](
https://www.datadoghq.com/blog/send-alerts-sms-customizable-webhooks-twilio/
)
-
You can
[
integrate with Twilio to be notified via SMS
](
https://www.datadoghq.com/blog/send-alerts-sms-customizable-webhooks-twilio/
)
every time an issue is created for a specific project or group within GitLab
every time an issue is created for a specific project or group within GitLab
-
You can use them to
[
automatically assign labels to merge requests
](
https://about.gitlab.com/2016/08/19/applying-gitlab-labels-automatically/
)
.
-
You can use them to
[
automatically assign labels to merge requests
](
https://about.gitlab.com/2016/08/19/applying-gitlab-labels-automatically/
)
.
...
@@ -1004,7 +1004,7 @@ X-Gitlab-Event: Pipeline Hook
...
@@ -1004,7 +1004,7 @@ X-Gitlab-Event: Pipeline Hook
"email"
:
"user@gitlab.com"
"email"
:
"user@gitlab.com"
}
}
},
},
"
build
s"
:[
"
job
s"
:[
{
{
"id"
:
380
,
"id"
:
380
,
"stage"
:
"deploy"
,
"stage"
:
"deploy"
,
...
@@ -1129,34 +1129,34 @@ X-Gitlab-Event: Pipeline Hook
...
@@ -1129,34 +1129,34 @@ X-Gitlab-Event: Pipeline Hook
}
}
```
```
###
Build
events
###
Job
events
Triggered on status change of a
Build
.
Triggered on status change of a
job
.
**Request Header**
:
**Request Header**
:
```
```
X-Gitlab-Event:
Build
Hook
X-Gitlab-Event:
Job
Hook
```
```
**Request Body**
:
**Request Body**
:
```
json
```
json
{
{
"object_kind"
:
"
build
"
,
"object_kind"
:
"
job
"
,
"ref"
:
"gitlab-script-trigger"
,
"ref"
:
"gitlab-script-trigger"
,
"tag"
:
false
,
"tag"
:
false
,
"before_sha"
:
"2293ada6b400935a1378653304eaf6221e0fdb8f"
,
"before_sha"
:
"2293ada6b400935a1378653304eaf6221e0fdb8f"
,
"sha"
:
"2293ada6b400935a1378653304eaf6221e0fdb8f"
,
"sha"
:
"2293ada6b400935a1378653304eaf6221e0fdb8f"
,
"
build
_id"
:
1977
,
"
job
_id"
:
1977
,
"
build
_name"
:
"test"
,
"
job
_name"
:
"test"
,
"
build
_stage"
:
"test"
,
"
job
_stage"
:
"test"
,
"
build
_status"
:
"created"
,
"
job
_status"
:
"created"
,
"
build
_started_at"
:
null
,
"
job
_started_at"
:
null
,
"
build
_finished_at"
:
null
,
"
job
_finished_at"
:
null
,
"
build
_duration"
:
null
,
"
job
_duration"
:
null
,
"
build
_allow_failure"
:
false
,
"
job
_allow_failure"
:
false
,
"
build
_failure_reason"
:
"script_failure"
,
"
job
_failure_reason"
:
"script_failure"
,
"project_id"
:
380
,
"project_id"
:
380
,
"project_name"
:
"gitlab-org/gitlab-test"
,
"project_name"
:
"gitlab-org/gitlab-test"
,
"user"
:
{
"user"
:
{
...
...
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