1. 授权认证
  2. 获取用户个人信息
  3. 项目协同
  4. 代码托管
  5. 持续集成
  6. 制品仓库
  7. 测试管理
  8. 文档管理
  1. 项目协同
  2. 代码仓库
  3. DevOps 实践之旅
  4. 一分钟开始持续集成之旅
  5. 持续部署
  6. 制品库

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

接口描述

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

英文:DescribeCodingCIJobs

输入参数

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

输出参数

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

示例

输入示例

{
  "Action": "DescribeCodingCIJobs",
  "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"
      }
    ]
  }
}

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

在阅读中是否遇到以下问题?

您希望我们如何改进?