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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a57f46b4
Commit
a57f46b4
authored
Mar 27, 2019
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename build to job in webhooks docs
parent
97f8d4e9
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 @
a57f46b4
...
...
@@ -48,7 +48,7 @@ Navigate to the webhooks page by going to your project's
## Use-cases
-
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/
)
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/
)
.
...
...
@@ -1004,7 +1004,7 @@ X-Gitlab-Event: Pipeline Hook
"email"
:
"user@gitlab.com"
}
},
"
build
s"
:[
"
job
s"
:[
{
"id"
:
380
,
"stage"
:
"deploy"
,
...
...
@@ -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**
:
```
X-Gitlab-Event:
Build
Hook
X-Gitlab-Event:
Job
Hook
```
**Request Body**
:
```
json
{
"object_kind"
:
"
build
"
,
"object_kind"
:
"
job
"
,
"ref"
:
"gitlab-script-trigger"
,
"tag"
:
false
,
"before_sha"
:
"2293ada6b400935a1378653304eaf6221e0fdb8f"
,
"sha"
:
"2293ada6b400935a1378653304eaf6221e0fdb8f"
,
"
build
_id"
:
1977
,
"
build
_name"
:
"test"
,
"
build
_stage"
:
"test"
,
"
build
_status"
:
"created"
,
"
build
_started_at"
:
null
,
"
build
_finished_at"
:
null
,
"
build
_duration"
:
null
,
"
build
_allow_failure"
:
false
,
"
build
_failure_reason"
:
"script_failure"
,
"
job
_id"
:
1977
,
"
job
_name"
:
"test"
,
"
job
_stage"
:
"test"
,
"
job
_status"
:
"created"
,
"
job
_started_at"
:
null
,
"
job
_finished_at"
:
null
,
"
job
_duration"
:
null
,
"
job
_allow_failure"
:
false
,
"
job
_failure_reason"
:
"script_failure"
,
"project_id"
:
380
,
"project_name"
:
"gitlab-org/gitlab-test"
,
"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