更新yaml流水线详情
功能介绍
更新yaml流水线详情
调用方法
请参见如何调用API。
URI
PUT /v6/{domain_id}/api/pac/pipelines/{pipeline_id}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
domain_id |
是 |
String |
租户id |
pipeline_id |
是 |
String |
流水线id |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
否 |
String |
项目id |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
name |
否 |
String |
名称 |
description |
否 |
String |
描述 |
push_to_repo |
否 |
Boolean |
是否推送到代码仓 |
new_branch |
否 |
Boolean |
分支名 |
new_file |
否 |
Boolean |
是否创建新文件 |
file_content |
否 |
String |
文件内容 |
selected_branch |
否 |
String |
所选分支 |
push_branch |
否 |
String |
推送的分支名 |
commit_message |
否 |
String |
提交信息 |
create_pull_request |
否 |
Boolean |
是否创建拉取请求 |
agency_name |
否 |
String |
委托URN |
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
pipelineId |
String |
流水线id |
请求示例
PUT https://{endpoint}/v6/93b9fc6ffc6a4edc9ab049c1f0dbec4b/api/pac/pipelines/f2286112591548af960ba8e80a92e0a1 { "name" : "新建流水线-20240830100147", "description" : "", "push_to_repo" : false, "new_branch" : false, "selected_branch" : "master", "new_file" : false, "file_content" : "content", "create_pull_request" : false, "push_branch" : "", "commit_message" : "", "agency_name" : null }
响应示例
状态码:200
OK
{ "pipeline_id" : "f2286112591548af960ba8e80a92e0a1" }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
错误码
请参见错误码。