Get builds for a specific commit of a project
GET
/v3/projects/{id}/repository/commits/{sha}/buildsGet builds for a specific commit of a project
请求参数
Path 参数
id
string
必需
The ID of a project
sha
string
必需
The SHA id of a commit
Query 参数
scope
enum<string>
可选
The scope of builds to show
枚举值:
pendingrunningfailedsuccesscanceled
page
integer <int32>
可选
Current page number
per_page
integer <int32>
可选
Number of items per page
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Get builds for a specific commit of a project
数据结构
This feature was added in GitLab 8.11
id
string
可选
status
string
可选
stage
string
可选
name
string
可选
ref
string
可选
tag
string
可选
coverage
string
可选
created_at
string
可选
started_at
string
可选
finished_at
string
可选
user
object (User)
可选
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
created_at
string
可选
is_admin
string
可选
bio
string
可选
location
string
可选
skype
string
可选
linkedin
string
可选
twitter
string
可选
website_url
string
可选
organization
string
可选
artifacts_file
object (BuildArtifactFile)
可选
filename
string
可选
size
string
可选
commit
object (RepoCommit)
可选
Get the commits of a merge request
id
string
可选
short_id
string
可选
title
string
可选
author_name
string
可选
author_email
string
可选
created_at
string
可选
committer_name
string
可选
committer_email
string
可选
message
string
可选
runner
object (Runner)
可选
Remove a runner
id
string
可选
description
string
可选
active
string
可选
is_shared
string
可选
name
string
可选
pipeline
object (PipelineBasic)
可选
id
string
可选
sha
string
可选
ref
string
可选
status
string
可选
示例
{
"id": "string",
"status": "string",
"stage": "string",
"name": "string",
"ref": "string",
"tag": "string",
"coverage": "string",
"created_at": "string",
"started_at": "string",
"finished_at": "string",
"user": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string",
"created_at": "string",
"is_admin": "string",
"bio": "string",
"location": "string",
"skype": "string",
"linkedin": "string",
"twitter": "string",
"website_url": "string",
"organization": "string"
},
"artifacts_file": {
"filename": "string",
"size": "string"
},
"commit": {
"id": "string",
"short_id": "string",
"title": "string",
"author_name": "string",
"author_email": "string",
"created_at": "string",
"committer_name": "string",
"committer_email": "string",
"message": "string"
},
"runner": {
"id": "string",
"description": "string",
"active": "string",
"is_shared": "string",
"name": "string"
},
"pipeline": {
"id": "string",
"sha": "string",
"ref": "string",
"status": "string"
}
}
最后修改时间: 1 个月前