编译构建 CODEARTS BUILD-获取构建任务详情:响应示例

时间:2023-11-28 10:22:11

响应示例

状态码: 200

OK

{
  "result" : {
    "steps" : [ {
      "properties" : {
        "image" : "maven3.5.3-jdk8-open",
        "snapshotArtifact" : {
          "displayName" : "",
          "value" : ""
        },
        "userPrivateRepositories" : [ ],
        "deal" : "notDeal",
        "dependencyCheckParam" : " ",
        "userPublicRepositories" : [ ],
        "settingMode" : "auto",
        "doCheck" : "disable",
        "junitCoverageSwitch" : false,
        "coverageReportPath" : "**/site/jacoco",
        "releaseArtifact" : {
          "displayName" : "",
          "value" : ""
        },
        "cacheOption" : "cached",
        "command" : "# 功能:  打包\n# 参数说明:\n#\t\t-Dmaven.test.skip=true:跳过单元测试\n#\t\t-U:每次构建检查依赖更新,可避免缓存中快照版本依赖不更新问题,但会牺牲部分性能\n#\t\t-e -X :打印调试信息,定位疑难构建问题时建议使用此参数构建\n#\t\t-B:以batch模式运行,可避免日志打印时出现ArrayIndexOutOfBoundsException异常\n# 使用场景: 打包项目且不需要执行单元测试时使用\nmvn package -Dmaven.test.skip=true -U -e -X -B\n\n#功能:打包;执行单元测试,但忽略单元测试用例失败,每次构建检查依赖更新\n#使用场景: 需要执行单元测试,且使用构建提供的单元测试报告服务统计执行情况\n# 使用条件:在”单元测试“中选择处理单元测试结果,并正确填写测试结果文件路径\n#mvn package -Dmaven.test.failure.ignore=true -U -e -X -B\n\n#功能:打包并发布依赖包到私有依赖库\n#使用场景: 需要将当前项目构建结果发布到私有依赖仓库以供其它maven项目引用时使用\n#注意事项: 此处上传的目标仓库为CodeArts私有依赖仓库,注意与软件发布仓库区分\n#mvn deploy -Dmaven.test.skip=true -U -e -X -B",
        "file" : "**/TEST*.xml",
        "dependencyProjectDir" : "./",
        "ignoreTest" : false,
        "pomMode" : "no",
        "dependencySettings" : "~/.m2/settings.xml"
      },
      "module_id" : "devcloud2018.codeci_action_20043.action",
      "name" : "Maven构建",
      "version" : null,
      "enable" : true
    }, {
      "properties" : {
        "image" : "shell4.2.46-git1.8.3-zip6.00",
        "buildVersion" : "",
        "file" : "**/target/*.?ar",
        "groupId" : "",
        "name" : ""
      },
      "module_id" : "devcloud2018.codeci_action_20018.action",
      "name" : "上传软件包到软件发布库",
      "version" : null,
      "enable" : true
    } ],
    "arch" : "x86-64",
    "project_id" : "a287e712be6c404ca26e5f69040fa12b",
    "job_name" : "oychap213i2",
    "job_id" : "35b6c7da9e644dbbb7e333579f89dcda",
    "auto_update_sub_module" : "false",
    "flavor" : "2u8g",
    "parameters" : [ {
      "name" : "hudson.model.StringParameterDefinition",
      "params" : [ {
        "name" : "name",
        "value" : "codeBranch",
        "limits" : null
      }, {
        "name" : "type",
        "value" : "normalparam",
        "limits" : null
      }, {
        "name" : "defaultValue",
        "value" : "master",
        "limits" : null
      }, {
        "name" : "description",
        "value" : "代码分支,系统预定义参数",
        "limits" : null
      }, {
        "name" : "deletion",
        "value" : "false",
        "limits" : null
      }, {
        "name" : "defaults",
        "value" : "true",
        "limits" : null
      }, {
        "name" : "staticVar",
        "value" : "false",
        "limits" : null
      }, {
        "name" : "sensitiveVar",
        "value" : "false",
        "limits" : null
      } ]
    } ],
    "scms" : [ {
      "branch" : "master",
      "url" : "git@codehub.devcloud.cn-north-7.ulanqab.huawei.com:soso-test00001/an.git",
      "is_auto_build" : false,
      "scm_type" : "codehub",
      "end_point_id" : null,
      "web_url" : "https://devcloud.cn-north-7.ulanqab.huawei.com/codehub/2111746211/home",
      "source" : null,
      "build_type" : "branch",
      "depth" : "1",
      "repo_id" : "2111746211"
    } ],
    "host_type" : "devcloud"
  },
  "error" : null,
  "status" : "success"
}
support.huaweicloud.com/api-codeci/ListJobConfig.html