查询单个项目下的所有构建计划

接口描述

中文:查询单个项目下的所有构建计划

英文:DescribeCodingCIJobs

输入参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeCodingCIJobs。
ProjectId Integer 项目 ID
Filter.N Array of Filter 过滤参数

输出参数

参数名称 类型 描述
JobList Array of CodingCIJob CI 任务列表
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

示例

输入示例

{
  "Action": "DescribeCodingCIJobs",
  "AccessToken":"8de58a21646f43699196c42a30d77770",
  "ProjectId": 1
}

输出示例

{
  "Response": {
    "RequestId": "1",
    "JobList": [
      {
        "Id": 23,
        "ProjectId": 450,
        "ProjectName": "test-1",
        "DepotId": 1,
        "DepotName": "test-1",
        "Name": "job-create",
        "ExecuteIn": "CVM",
        "TriggerMethodList": [
          "MR_CHANGE",
          "REF_CHANGE"
        ],
        "HookType": "DEFAULT",
        "BranchSelector": "master",
        "BranchRegex": "^refs/heads/master$",
        "JenkinsFileFromType": "STATIC",
        "JenkinsFilePath": "Jenkinsfile",
        "AutoCancelSameRevision": true,
        "AutoCancelSameMergeRequest": true,
        "TriggerRemind": "ALWAYS",
        "CachePathList": [],
        "EnvList": [
          {
            "Name": "a",
            "Value": "1",
            "Sensitive": false
          },
          {
            "Name": "b",
            "Value": "2",
            "Sensitive": true
          }
        ],
        "ScheduleList": [],
        "AlwaysUserIdList": [],
        "BuildFailUserIdList": [],
        "CreatorId": 1,
        "CreatedAt": 0,
        "UpdatedAt": 0,
        "DepotWebUrl": "http://codingcorp.coding.9.134.115.58.nip.io/p/test-1/d/test-1/git",
        "DepotSshUrl": "git@e.coding.9.134.115.58.nip.io:codingcorp/test-1.git",
        "DepotHttpsUrl": "http://e.coding.9.134.115.58.nip.io/codingcorp/test-1.git",
        "DockerFilePath": "",
        "DockerBuildPath": "",
        "DockerBuildTag": "",
        "JobFromType": "CODING",
        "DepotType": "CODING"
      },
      {
        "Id": 24,
        "ProjectId": 450,
        "ProjectName": "test-1",
        "DepotId": 1,
        "DepotName": "test-1",
        "Name": "job-create",
        "ExecuteIn": "CVM",
        "TriggerMethodList": [
          "MR_CHANGE",
          "REF_CHANGE"
        ],
        "HookType": "DEFAULT",
        "BranchSelector": "master",
        "BranchRegex": "^refs/heads/master$",
        "JenkinsFileFromType": "STATIC",
        "JenkinsFilePath": "Jenkinsfile",
        "AutoCancelSameRevision": true,
        "AutoCancelSameMergeRequest": true,
        "TriggerRemind": "ALWAYS",
        "CachePathList": [],
        "EnvList": [
          {
            "Name": "a",
            "Value": "1",
            "Sensitive": false
          },
          {
            "Name": "b",
            "Value": "2",
            "Sensitive": true
          }
        ],
        "ScheduleList": [],
        "AlwaysUserIdList": [],
        "BuildFailUserIdList": [],
        "CreatorId": 1,
        "CreatedAt": 0,
        "UpdatedAt": 0,
        "DepotWebUrl": "http://codingcorp.coding.9.134.115.58.nip.io/p/test-1/d/test-1/git",
        "DepotSshUrl": "git@e.coding.9.134.115.58.nip.io:codingcorp/test-1.git",
        "DepotHttpsUrl": "http://e.coding.9.134.115.58.nip.io/codingcorp/test-1.git",
        "DockerFilePath": "",
        "DockerBuildPath": "",
        "DockerBuildTag": "",
        "JobFromType": "CODING",
        "DepotType": "CODING"
      }
    ]
  }
}

上一篇获取构建步骤日志
最近更新
感谢反馈有用
感谢反馈没用