检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
请求过于频繁,请稍后再试。 请求过于频繁,请稍后再试。 请求过于频繁,请稍后再试。 400 CB.00060212 上传文件不能为空 上传文件不能为空 请确认是否有选择文件上传 400 CB.00060213 上传文件个数不能超过x个 上传文件个数不能超过x个 请减少单次上传的文件个数 404 CB.00060214
CreateBuildJobScm 参数 参数类型 描述 branch String 代码分支 url String 代码仓地址 repo_id String repo的id web_url String 代码仓http地址 scm_type String 仓库类别,Repo、Github等 is_auto_build
Token认证 Token的有效期为24小时,需要使用一个Token鉴权时,可以先缓存起来,避免频繁调用。 使用Token前请确保Token离过期有足够的时间,防止调用API的过程中Token过期导致调用API失败。 Token在计算机系统中代表令牌(临时)的意思,拥有Token就代表拥
is_modify Boolean 是否有修改任务权限 is_delete Boolean 是否有删除任务权限 is_execute Boolean 是否有执行任务权限 is_copy Boolean 是否有复制任务权限 is_forbidden Boolean 是否有禁用任务权限 is_view
String 代码仓分支 scm_type String 代码源类型 scm_web_url String 代码源地址 commit_detail_url String 代码提交记录信息地址(代码源为Repo) 表6 commit_info 参数 参数类型 描述 commit_id String
参数类型 描述 branch 否 String 代码分支 url 是 String 代码仓地址 repo_id 是 String repo的id web_url 是 String 代码仓http地址 scm_type 是 String 仓库类别,Repo、Github等 is_auto_build
CreateBuildJobScm 参数 参数类型 描述 branch String 代码分支 url String 代码仓地址 repo_id String repo的id web_url String 代码仓http地址 scm_type String 仓库类别,Repo、Github等 is_auto_build
参数类型 描述 branch 否 String 代码分支 url 是 String 代码仓地址 repo_id 是 String repo的id web_url 是 String 代码仓http地址 scm_type 是 String 仓库类别,Repo、Github等 is_auto_build
参数类型 描述 branch 否 String 代码分支 url 是 String 代码仓地址 repo_id 是 String repo的id web_url 是 String 代码仓http地址 scm_type 是 String 仓库类别,Repo、Github等 is_auto_build
希望更模块化、更加细粒度地拆分构建任务,并按照依赖顺序进行构建。 对于上述构建场景,编译构建服务支持使用BuildFlow将多个存在依赖关系的构建任务按照有向无环图(DAG)的方式组装起来,BuildFlow将会按照构建的依赖关系并发进行构建。 此场景下,需要编译构建多任务并发执行。构建并发数计算方式示例如下:
部分场景下,需要从引入项目中的程序集,操作步骤如下: 拷贝已有程序集到项目下,一般在根目录建立packages文件夹存放程序集。 在csproj文件中引入程序集,并指定程序集地址。 提交更改后的代码、程序集,重新构建即可解决问题。 父主题: Msbuild构建
/v1/template/recommend 请求参数 表1 请求Body参数 参数 是否必选 参数类型 描述 git_url 否 String 代码仓地址 branch 否 String 代码仓分支名称你 tags 否 String 代码仓TAG 响应参数 状态码: 200 表2 响应Body参数
在“构建步骤”页签,单击“图形化”,单击“点击添加构建步骤”。 在右侧区域“容器类”页签中,单击“使用SWR公共镜像”所在行的“添加”,按照图4配置参数。其中“镜像地址”填写10中保存的完整镜像名称“swr.{regionID}.myhuaweicloud.com/hwstaff_codeci_gray/
可根据实际情况选择“内置执行机”或者“自定义执行机”。 当选择“内置执行机”时,需要根据实际使用情况选择“X86”或“ARM”,支持购买的执行机规格有 2U8G:资源规格为2 vCPU / 8 GB / 60 GB 磁盘空间。 4U8G:资源规格为4 vCPU / 8 GB / 100 GB
gnuarm-7-2018-q2-update镜像:使用arm-none-eabi-gcc命令,如下: arm-none-eabi-gcc --specs=nosys.specs -o main main.c 说明: Linux下的GNU的makefile编写,请参见官网。 注意Makefile只有行注
BUILD: - maven: image: cloudbuild@maven3.5.3-jdk8-open # 可以自定义镜像地址 inputs: settings: public_repos: -
ild15-dotnetframework4.7.2”版本镜像,使用nuget restore && msbuild命令构建。 其他 对于有其他命令需求的项目,如Git、JDK、Nant、Nodejs等,使用对应的命令进行操作。 表2 未支持的场景 场景类型 说明 未使用Nuget管理依赖库
error Object 错误 result Array of ShowPackageSpecStatusList objects 单元测试报告列表 表3 ShowPackageSpecStatusList 参数 参数类型 描述 resource_id String 资源编号 region_id
参数类型 描述 branch 否 String 代码分支 url 是 String 代码仓地址 repo_id 否 String repo的id web_url 否 String 代码仓http地址 scm_type 是 String 仓库类别,Repo、Github等 is_auto_build
参数类型 描述 branch 否 String 代码分支 url 是 String 代码仓地址 repo_id 否 String repo的id web_url 否 String 代码仓http地址 scm_type 是 String 仓库类别,Repo、Github等 is_auto_build