Cancel all builds in the pipeline
POST
/v3/projects/{id}/pipelines/{pipeline_id}/cancelThis feature was introduced in GitLab 8.11.
请求参数
Path 参数
id
string
必需
The project ID
pipeline_id
integer <int32>
必需
The pipeline ID
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Cancel all builds in the pipeline
数据结构
This feature was introduced in GitLab 8.11.
id
string
可选
sha
string
可选
ref
string
可选
status
string
可选
before_sha
string
可选
tag
string
可选
yaml_errors
string
可选
user
object (UserBasic)
可选
Get a single user
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
created_at
string
可选
updated_at
string
可选
started_at
string
可选
finished_at
string
可选
committed_at
string
可选
duration
string
可选
coverage
string
可选
示例
{
"id": "string",
"sha": "string",
"ref": "string",
"status": "string",
"before_sha": "string",
"tag": "string",
"yaml_errors": "string",
"user": {
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string"
},
"created_at": "string",
"updated_at": "string",
"started_at": "string",
"finished_at": "string",
"committed_at": "string",
"duration": "string",
"coverage": "string"
}
最后修改时间: 1 个月前