diff options
author | Evan Read <eread@gitlab.com> | 2019-03-28 01:59:31 +0000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-03-28 01:59:31 +0000 |
commit | 0795a27fd1d539519c6c6e2cb2cd175dff34d580 (patch) | |
tree | af4b25f092284c84d78265045491441c7bf6d96b | |
parent | a5d1b8a2e1a249426d56d74b732790db7e1fe1af (diff) | |
parent | a57f46b439c89b7619f837cfe455de576bb03fb6 (diff) | |
download | gitlab-ce-0795a27fd1d539519c6c6e2cb2cd175dff34d580.tar.gz |
Merge branch 'docs/build-to-job-webhooks' into 'master'
Rename build to job in webhooks docs
Closes #42254 and #28226
See merge request gitlab-org/gitlab-ce!26676
-rw-r--r-- | doc/user/project/integrations/webhooks.md | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/user/project/integrations/webhooks.md b/doc/user/project/integrations/webhooks.md index d324e0de0cc..8e1603f9ec9 100644 --- a/doc/user/project/integrations/webhooks.md +++ b/doc/user/project/integrations/webhooks.md @@ -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" } }, - "builds":[ + "jobs":[ { "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": { |