版本

创建版本 分享链接

作者:王怡栋 最后编辑:宋辰轩 于 2024-09-30 15:04:11 浏览量:6086
POST
/projects/id/builds

创建版本

请求URL

https://xxx.com/api.php/v1/projects/id/builds

请求头

名称 类型 必填 描述
Token String 认证凭证Token

请求体

名称 类型 必填 描述
execution int 所属执行
product int 所属产品
branch int 所属分支
name string 版本名称
builder string 构建者
date date 打包日期
scmPath string 源代码地址
filePath string 下载地址
desc string 版本描述

请求示例

{
    "name": "test",
    "product": 4,
    "date": "2021-01-01",
    "execution": 42,
    "builder": "admin"
}

请求响应

名称 类型 必填 描述
id int 版本ID
project int 所属项目
product int 所属产品
branch int 所属产品分支(主分支为0)
execution int 所属执行
name string 版本名称
scmPath string 源代码地址
filePath string 下载地址
desc string 版本描述
builder 构建者
date date 打包日期

响应示例

{
    "id": 3,
    "project": 41,
    "product": 4,
    "branch": 0,
    "execution": 42,
    "name": "test",
    "scmPath": "",
    "filePath": "",
    "date": "2021-01-01",
    "stories": "",
    "bugs": "",
    "builder": "admin",
    "desc": "",
    "deleted": "0",
    "executionName": "testt",
    "productName": "多分支产品",
    "productType": "branch",
    "files": []
}
返回顶部
徐亚京
高级客户经理
17663982076
2679672214
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。 问题反馈反馈点击这里,让我们聆听您的建议与反馈。