Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
9d27ce16
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
9d27ce16
编写于
11月 21, 2017
作者:
T
Tomasz Maczukin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update documentation
上级
c0e72610
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
36 addition
and
11 deletion
+36
-11
doc/api/runners.md
doc/api/runners.md
+36
-11
未找到文件。
doc/api/runners.md
浏览文件 @
9d27ce16
...
...
@@ -215,9 +215,9 @@ DELETE /runners/:id
curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/runners/6"
```
## List runner's
running
jobs
## List runner's jobs
List
running jobs assigned to the
specified Runner.
List
jobs that are being processed or were processed by
specified Runner.
```
GET /runners/:id/jobs
...
...
@@ -226,9 +226,10 @@ GET /runners/:id/jobs
| Attribute | Type | Required | Description |
|-----------|---------|----------|---------------------|
|
`id`
| integer | yes | The ID of a runner |
|
`status`
| string | no | Status of the job; one of:
`running`
,
`success`
,
`failed`
,
`canceled`
|
```
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/runners/1/jobs"
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/runners/1/jobs
?status=running
"
```
Example response:
...
...
@@ -247,20 +248,44 @@ Example response:
"started_at"
:
"2017-11-16T08:51:29.000Z"
,
"finished_at"
:
"2017-11-16T08:53:29.000Z"
,
"duration"
:
120
,
"user"
:
null
,
"commit"
:
null
,
"runner"
:
{
"user"
:
{
"id"
:
1
,
"description"
:
"My runner1"
,
"active"
:
true
,
"is_shared"
:
true
,
"name"
:
null
"name"
:
"John Doe2"
,
"username"
:
"user2"
,
"state"
:
"active"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/c922747a93b40d1ea88262bf1aebee62?s=80&d=identicon"
,
"web_url"
:
"http://localhost/user2"
,
"created_at"
:
"2017-11-16T18:38:46.000Z"
,
"bio"
:
null
,
"location"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"website_url"
:
""
,
"organization"
:
null
},
"commit"
:
{
"id"
:
"97de212e80737a608d939f648d959671fb0a0142"
,
"short_id"
:
"97de212e"
,
"title"
:
"Update configuration
\r
"
,
"created_at"
:
"2017-11-16T08:50:28.000Z"
,
"parent_ids"
:
[
"1b12f15a11fc6e62177bef08f47bc7b5ce50b141"
,
"498214de67004b1da3d820901307bed2a68a8ef6"
],
"message"
:
"See merge request !123"
,
"author_name"
:
"John Doe2"
,
"author_email"
:
"user2@example.org"
,
"authored_date"
:
"2017-11-16T08:50:27.000Z"
,
"committer_name"
:
"John Doe2"
,
"committer_email"
:
"user2@example.org"
,
"committed_date"
:
"2017-11-16T08:50:27.000Z"
},
"pipeline"
:
{
"id"
:
2
,
"sha"
:
"97de212e80737a608d939f648d959671fb0a0142"
,
"ref"
:
"master"
,
"status"
:
"
pend
ing"
"status"
:
"
runn
ing"
},
"project"
:
{
"id"
:
1
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录