检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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
"domain_id": "accountid", "name": "username", "password": "**********", "email": "email", "description":
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"projects": [ { "domain_id": "65382450e8f64ac0870cd180d14e684b", "is_domain": false, "parent_id": "
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
成长地图 | 华为云 代码检查 CodeArts Check(原CodeCheck)是基于云端实现的代码检查服务。为用户提供代码风格、通用质量与网络安全风险等丰富的检查能力,提供全面质量报告、便捷的问题闭环处理帮助企业有效管控代码质量,助力企业成功。 产品概述 图说Check 立即使用
任务状态,0表示检查中,1表示检查失败,2表示检查成功,3表示任务中止 progress ProgressDetailV2 object 检查进度 表4 ProgressDetailV2 参数 参数类型 描述 ratio String 进度百分比 info String 进度信息 状态码:
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
响应Body参数 参数 参数类型 描述 data Array of CheckRecordDataInfo objects 历史记录数据 total Integer 总数 表5 CheckRecordDataInfo 参数 参数类型 描述 check_time String 检查任务执行开始时间
Length Required 服务器无法处理客户端发送的不带Content-Length的请求信息。 412 Precondition Failed 未满足前提条件,服务器未满足请求者在请求中设置的其中一个前提条件。 413 Request Entity Too Large 由于
"password": "********", "domain": { "name": "domainname" } }
"即为生成的调用命令。 图2 生成API调用命令 参考4,依次获得查询任务执行状态(ShowProgressDetail)、查询缺陷概要(ShowTaskDetail)API的调用命令。 在Jenkins工具中调用代码检查API 编写流水线脚本,代码示例如下。 pipeline {
"branchName" : "dev01", "isDefault" : "false", "status" : "failed" }, { "taskId" : "11223344xxxxxxxx11223344xxxxxxx2", "branchName"
响应值为MR任务对应的执行ID,也就是1个任务1次执行产生的1个job的ID。 轮询任务执行状态请求示例。 ShowProgressDetail:GET /v2/tasks/{task_id}/progress “task_id”中填入MR任务ID以查询任务执行状态,任务状态0表