检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
操作步骤 执行构建任务。 接口信息 URI:POST /v3/jobs/build API文档详情请参见:执行构建任务 API Explorer在线调试请参见: 执行构建任务 请求示例 POST https://cloudbuild-ext.cn-north-1.myhuaweicloud
Boolean 是否启用gitlfs build_type 否 String 构建类型,分支构建、TAG构建等 depth 否 String 克隆深度 end_point_id 否 String 通用git等代码拉取扩展点ID source 否 String 来源类型 group_name
CommitID在代码仓库中显示如图1。 图1 CommitID 克隆深度 可选参数。 克隆深度是指距离最近一次提交的提交次数,该值越大,检出代码的深度越深。深度为正整数,推荐最大深度为25。 例如:克隆深度5就表示只克隆最新5次提交记录以及提交之后的最新内容,不克隆历史提交。 子模块(submodules)自动更新
is_auto_build 否 Boolean 是否自动构建 build_type 否 String 构建类别 depth 否 String 克隆深度 end_point_id 否 String endpointId source 否 String source 表7 CreateBuildJobSteps
Boolean 是否启用gitlfs build_type 否 String 构建类型,分支构建、TAG构建等 depth 否 String 克隆深度 end_point_id 否 String 通用git等代码拉取扩展点ID source 否 String 来源类型 group_name
Boolean 是否启用gitlfs build_type String 构建类型,分支构建、TAG构建等 depth String 克隆深度 end_point_id String 通用git等代码拉取扩展点ID source String 来源类型 group_name String
is_auto_build 否 Boolean 是否自动构建 build_type 否 String 构建类别 depth 否 String 克隆深度 end_point_id 否 String endpointId source 否 String source 表7 UpdateBuildJobSteps
用于长期、稳定的业务需求。以下是一些适用于包年/包月计费模式的业务场景: 稳定业务需求:对于长期运行且资源需求相对稳定的业务,如企业官网、在线商城、博客等,包年/包月计费模式能提供较高的成本效益。 长期项目:对于周期较长的项目,如科研项目、大型活动策划等,包年/包月计费模式可以确保在整个项目周期内资源的稳定使用。
Boolean 是否启用gitlfs build_type 否 String 构建类型,分支构建、TAG构建等 depth 否 String 克隆深度 end_point_id 否 String 通用git等代码拉取扩展点ID source 否 String 来源类型 group_name
接口信息 URI:GET /v3/{project_id}/jobs API文档详情请参见:查看项目下用户的构建任务列表 API Explorer在线调试请参见: 查看项目下用户的构建任务列表 请求示例 GET https://cloudbuild-ext.cn-north-1.myhuaweicloud
Boolean 是否启用gitlfs build_type String 构建类型,分支构建、TAG构建等 depth String 克隆深度 end_point_id String 通用git等代码拉取扩展点ID source String 来源类型 group_name String
仓库类别,Repo、Github等 is_auto_build Boolean 是否自动构建 build_type String 构建类别 depth String 克隆深度 end_point_id String endpointId source String source 表10 CreateBuildJobSteps
lfs,非必填,默认值false。 submodule:是否拉取子模块,非必填,默认值false。 depth:浅克隆深度。选择commitId构建时,depth必须大于等于commitId所在深度,非必填,默认值1。 tag:tag构建时拉取的tag名,如果commit和tag同时存在,优先执行commit构建,非必填。