获取持续集成源码构建的构建信息

Method

GET

描述

获取持续集成源码构建的构建信息

请求参数

参数名称说明参数类型是否必填备注
RepositoryId镜像仓库Idlong
ActionDescribeCISourceInfostring
Version2018-03-08string

返回参数

参数名称说明参数类型是否必填备注
TypeDockerfile类型,1:自动生成,2:自定义integer
NameRule持续集成tag命名规则0:branch+updateTime,1:updateTime,2:tagstring
Dockerfile构建dockerfile路径string
MetaImageId默认镜像Idlong
Source持续构建源信息object详细信息见下表
参数名称说明参数类型是否必填备注
CodeFrom1:github,2:gitlabinteger
RepoName代码仓库名称string
RepoId源代码仓库idlong
RepoUrl代码仓库urlstring
Branch需要构建镜像的代码分支string
CITrigger触发构建条件,0:tag,1:branchinteger

状态码

错误码(Code)错误提示(Message)http status code说明
ForbiddenYou have no right to access.403无权访问
MissingParameterThe required input parameter %s for processing this request is not supplied.400参数 %s 缺失
ResourceNotFound%s is not found.404%s请求的资源不存在

请求示例

GET https://open.cn-east-1.163yun.com/ccr?Version=2018-03-08&Action=DescribeCISourceInfo&RepositoryId=230 HTTP/1.1

返回示例

{
    "Dockerfile": "Dockerfile",
    "Type": 2,
    "RequestId": "8a722cb1-a7f9-464b-8c2b-72ec8c19f3da",
    "NameRule": 1,
    "Source": {
        "Branch": "master",
        "CITrigger": 1,
        "CodeFrom": 2,
        "RepoUrl": "https://gitlab.com/ncerepo/first.git"
    }
}