Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
8af6bea8
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8af6bea8
编写于
8月 12, 2016
作者:
K
Kamil Trzcinski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added documentation for pipeline hooks
上级
a52fe164
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
168 addition
and
0 deletion
+168
-0
doc/web_hooks/web_hooks.md
doc/web_hooks/web_hooks.md
+168
-0
未找到文件。
doc/web_hooks/web_hooks.md
浏览文件 @
8af6bea8
...
...
@@ -754,6 +754,174 @@ X-Gitlab-Event: Wiki Page Hook
}
```
## Pipeline events
Triggered on status change of Pipeline.
**Request Header**
:
```
X-Gitlab-Event: Pipeline Hook
```
**Request Body**
:
```
json
{
"object_kind"
:
"pipeline"
,
"object_attributes"
:{
"id"
:
31
,
"ref"
:
"master"
,
"tag"
:
false
,
"sha"
:
"bcbb5ec396a2c0f828686f14fac9b80b780504f2"
,
"before_sha"
:
"bcbb5ec396a2c0f828686f14fac9b80b780504f2"
,
"status"
:
"success"
,
"stages"
:[
"build"
,
"test"
,
"deploy"
],
"created_at"
:
"2016-08-12 15:23:28 UTC"
,
"finished_at"
:
"2016-08-12 15:26:29 UTC"
,
"duration"
:
63
},
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80
\u
0026d=identicon"
},
"project"
:{
"name"
:
"Gitlab Test"
,
"description"
:
"Atque in sunt eos similique dolores voluptatem."
,
"web_url"
:
"http://192.168.64.1:3005/gitlab-org/gitlab-test"
,
"avatar_url"
:
null
,
"git_ssh_url"
:
"git@192.168.64.1:gitlab-org/gitlab-test.git"
,
"git_http_url"
:
"http://192.168.64.1:3005/gitlab-org/gitlab-test.git"
,
"namespace"
:
"Gitlab Org"
,
"visibility_level"
:
20
,
"path_with_namespace"
:
"gitlab-org/gitlab-test"
,
"default_branch"
:
"master"
},
"commit"
:{
"id"
:
"bcbb5ec396a2c0f828686f14fac9b80b780504f2"
,
"message"
:
"test
\n
"
,
"timestamp"
:
"2016-08-12T17:23:21+02:00"
,
"url"
:
"http://example.com/gitlab-org/gitlab-test/commit/bcbb5ec396a2c0f828686f14fac9b80b780504f2"
,
"author"
:{
"name"
:
"User"
,
"email"
:
"user@gitlab.com"
}
},
"builds"
:[
{
"id"
:
380
,
"stage"
:
"deploy"
,
"name"
:
"production"
,
"status"
:
"skipped"
,
"created_at"
:
"2016-08-12 15:23:28 UTC"
,
"started_at"
:
null
,
"finished_at"
:
null
,
"when"
:
"manual"
,
"manual"
:
true
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80
\u
0026d=identicon"
},
"runner"
:
null
,
"artifacts_file"
:{
"filename"
:
null
,
"size"
:
null
}
},
{
"id"
:
377
,
"stage"
:
"test"
,
"name"
:
"test-image"
,
"status"
:
"success"
,
"created_at"
:
"2016-08-12 15:23:28 UTC"
,
"started_at"
:
"2016-08-12 15:26:12 UTC"
,
"finished_at"
:
null
,
"when"
:
"on_success"
,
"manual"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80
\u
0026d=identicon"
},
"runner"
:
null
,
"artifacts_file"
:{
"filename"
:
null
,
"size"
:
null
}
},
{
"id"
:
378
,
"stage"
:
"test"
,
"name"
:
"test-build"
,
"status"
:
"success"
,
"created_at"
:
"2016-08-12 15:23:28 UTC"
,
"started_at"
:
"2016-08-12 15:26:12 UTC"
,
"finished_at"
:
"2016-08-12 15:26:29 UTC"
,
"when"
:
"on_success"
,
"manual"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80
\u
0026d=identicon"
},
"runner"
:
null
,
"artifacts_file"
:{
"filename"
:
null
,
"size"
:
null
}
},
{
"id"
:
376
,
"stage"
:
"build"
,
"name"
:
"build-image"
,
"status"
:
"success"
,
"created_at"
:
"2016-08-12 15:23:28 UTC"
,
"started_at"
:
"2016-08-12 15:24:56 UTC"
,
"finished_at"
:
"2016-08-12 15:25:26 UTC"
,
"when"
:
"on_success"
,
"manual"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80
\u
0026d=identicon"
},
"runner"
:
null
,
"artifacts_file"
:{
"filename"
:
null
,
"size"
:
null
}
},
{
"id"
:
379
,
"stage"
:
"deploy"
,
"name"
:
"staging"
,
"status"
:
"created"
,
"created_at"
:
"2016-08-12 15:23:28 UTC"
,
"started_at"
:
null
,
"finished_at"
:
null
,
"when"
:
"on_success"
,
"manual"
:
false
,
"user"
:{
"name"
:
"Administrator"
,
"username"
:
"root"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/e32bd13e2add097461cb96824b7a829c?s=80
\u
0026d=identicon"
},
"runner"
:
null
,
"artifacts_file"
:{
"filename"
:
null
,
"size"
:
null
}
}
]
}
```
#### Example webhook receiver
If you want to see GitLab's webhooks in action for testing purposes you can use
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录