检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"即为生成的调用命令。 图2 生成API调用命令 参考4,依次获得查询任务执行状态(ShowProgressDetail)、查询缺陷概要(ShowTaskDetail)API的调用命令。 在Jenkins工具中调用代码检查API 编写流水线脚本,代码示例如下。 pipeline {
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
Length Required 服务器无法处理客户端发送的不带Content-Length的请求信息。 412 Precondition Failed 未满足前提条件,服务器未满足请求者在请求中设置的其中一个前提条件。 413 Request Entity Too Large 由于
getTaskBasicInfo failed 调用getTaskBasicInfo接口异常 待会重试或者联系客服 200 CC.00050015 task is running 任务正在执行,稍后重试 稍后重试 200 CC.00050016 create task failed 新建任务出错!创建未成功!
"domain_id": "accountid", "name": "username", "password": "**********", "email": "email", "description":
ae12056478a7919f", "creatorName":"name", "domainId":"78d0e09c1ad0425b9b4f3a8fdd066164", "domainName":"name", "gitUrl":"git@xxxxx/portal-ts.git"
"password": "********", "domain": { "name": "domainname" } }
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
ae12056478a7919f", "creatorName":"name", "domainId":"78d0e09c1ad0425b9b4f3a8fdd066164", "domainName":"name", "gitUrl":"git@xxxxx/portal-ts.git"
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
查日志 调用方法 请参见如何调用API。 URI GET /v2/{project_id}/tasks/{task_id}/log-detail 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID,每个CodeArts首页下的项目都有1个唯一的项目ID
响应值为MR任务对应的执行ID,也就是1个任务1次执行产生的1个job的ID。 轮询任务执行状态请求示例。 ShowProgressDetail:GET /v2/tasks/{task_id}/progress “task_id”中填入MR任务ID以查询任务执行状态,任务状态0表
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"branchName" : "dev01", "isDefault" : "false", "status" : "failed" }, { "taskId" : "11223344xxxxxxxx11223344xxxxxxx2", "branchName"
"2024-05-21T09:03:41.000000", "domain_id": "d78cbac1..........", "xdomain_id": "30086000........", "xdomain_type": "", "default_project_id":
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great