检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
获取单元测试覆盖率报告压缩包 功能介绍 获取单元测试覆盖率报告压缩包 调用方法 请参见如何调用API。 URI GET /v1/report/junit/coverage/download 表1 Query参数 参数 是否必选 参数类型 描述 job_id 是 String 构建的任务
获取单元测试覆盖率报告列表 功能介绍 获取单元测试覆盖率报告列表 调用方法 请参见如何调用API。 URI GET /v1/report/junit/coverage/list 表1 Query参数 参数 是否必选 参数类型 描述 job_id 是 String 构建的任务ID;
使用HarmonyOS构建 使用Hvigor进行编译,测试和部署项目。 使用Hvigor构建的执行机规格需4U8G及以上。 图形化构建 在配置构建步骤中,添加“HarmonyOS构建”构建步骤,参考表1配置参数。 表1 HarmonyOS构建参数说明 参数 说明 步骤显示名称 构建步骤的名称
生成单元测试报告 该步骤用于解析用户生成的单元测试结果文件,并生成可视化报告。 前提条件 在执行“单元测试报告”步骤前,需已生成测试结果文件,并且该文件框架符合编译构建服务支持的框架类型。 图形化构建 在配置构建步骤中,添加“单元测试报告”构建步骤,参考表1配置参数。 表1 单元测试报告参数说明
URI GET /v3/jobs/{job_id}/build-info-records 表1 路径参数 参数 是否必选 参数类型 描述 job_id 是 String 参数解释: 填写构建任务ID。
响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 total Integer 记录总数 history_records Array of history_records objects 构建历史列表 表5 history_records 参数 参数类型 描述
URI GET /v1/record/{build_project_id}/records 表1 路径参数 参数 是否必选 参数类型 描述 build_project_id 是 String 构建工程项目ID,36位数字、小写字母组合。
响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 history_records Array of HistoryRecord objects 构建历史列表 total Integer 记录总数 表5 HistoryRecord 参数 参数类型 描述 record_id
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK
使用Ant构建 使用Ant构建可以编译、测试和部署Java项目。 图形化构建 在配置构建步骤中,添加“Ant构建”构建步骤,参考表1配置参数。 表1 Ant构建参数说明 参数 说明 步骤显示名称 构建步骤的名称,可自定义修改。 支持中文、英文、数字、“-”、“_”、英文逗号、英文分号
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK
items Array of QueryTemplatesItems objects 模板信息列表 表5 QueryTemplatesItems 参数 参数类型 描述 favourite Boolean 是否收藏模板 nick_name String 昵称 id String 数据库中
使用Kotlin构建 使用Kotlin构建可以编译、测试和部署项目。 图形化构建 在配置构建步骤中,添加“Kotlin构建”构建步骤,参考表1配置参数。 表1 Kotlin构建参数说明 参数 说明 步骤显示名称 构建步骤的名称,可自定义修改。 支持中文、英文、数字、“-”、“_”、
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK
Array of job_update_records objects job_update_records total Integer 总数 表5 job_update_records 参数 参数类型 描述 id String 修改编号 update_number String
CreateTemplatesItems objects 查询模板结果 error String 返回错误信息 status String 返回状态信息 表4 CreateTemplatesItems 参数 参数类型 描述 favourite Boolean 是否收藏模板 id String 数据库中
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK
Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment ak = os.environ["CLOUD_SDK_AK