检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Build的相关操作事件,方便您日后的查询、审计和回溯。 支持审计日志的操作 表1 云审计服务支持CodeArts Build服务操作 操作名称 资源类型 事件名称 创建编译构建任务 CloudBuildsServer createJob 执行编译构建任务 CloudBuildServer buildJob
command: echo ${a} ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 请根据需要填写执行构建的shell命令。 ignore_fail string 用于控制当前步骤执行失败后是否继续执行下一个步骤。
key_password: xxxxxx apksigner_commond: --verbose 参数名 参数类型 描述 是否必填 默认值 file_path string 需要签名的APK路径。 是 无 keystore_file string Keystore文件名。
npm run build ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Grunt命令。更多命令使用方法可参考Grunt官网。 ignore_fail string 用
command: gradle build ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Kotlin构建命令。更多命令使用方法可参考Kotlin官网。 ignore_fail string
url: xxxxxxxxxxxxx ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 url string 粘贴从2复制的软件包下载地址。 ignore_fail string 用于控制当前步骤执行失败后是否继续执行下一个步骤。
command: grails war ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Grails命令。更多命令使用方法可参考Grails官网。 ignore_fail string
bazel-bin/* build_out/ ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Bazel执行命令。 ignore_fail string 用于控制当前步骤执行失败后是否继续执行下一个步骤。
assembleApp --no-daemon ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置HarmonyOS的执行命令。 ignore_fail string 用于控制当前步骤执行失败后是否继续执行下一个步骤。
/buildResult/Release/bin/* ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置mono执行命令。 ignore_fail string 用于控制当前步骤执行失败后是否继续执行下一个步骤。
Makefiles' ../ && make -j ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置CMake命令。更多命令使用方法可参考CMake官网。 ignore_fail string 用
-verbose gulp ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置gulp命令。更多命令使用方法可参考gulp官网。 ignore_fail string 用于控
-zcvf php-composer.tgz * ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置PHP命令。更多命令使用方法可参考PHP官网。 ignore_fail string 用于控制当
cp -rf $GOPATH/bin/ ./bin ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Go项目构建命令。更多命令使用方法可参考Go官网。 ignore_fail string 用于控
--stacktrace ignore_fail: true 表2 Android构建代码示例参数说明 参数名称 参数类型 参数说明 command string 填写Gradle执行命令。如果需要配置更多命令,可参考Gradle官网。 gradle string
--max_new_space_size=1024 test.js // 单位为KB 修改新生代内存限制 针对前端三大框架的解决方法如下: 框架类型 解决方法 Vue 只需要修改“package.json”文件中“build”属性值,在命令中加入带参数的node命令即可,例如: "build":
connectionTimeout=800000 ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Gradle命令。更多命令使用方法可参考Gradle官网。 gradle string 根据用户
添加自定义参数的配置指导 在编译构建任务配置页面,切换至“参数设置”页签,单击“新建参数”,参考表2配置参数。 表2 添加自定义参数 名称 类型 默认值 私密参数 运行时设置 参数描述 自定义参数名称。支持字母,数字,下划线“_”,长度不超过128个字符。 说明: 以下字段不可用:
example.com:test/python3.git # 选填,可自定义,与branch一起确定缓存标签 表1 配置参数表 参数项 参数类型 描述 是否必填 CLOUD_BUILD_UPLOAD_FLAG String 用于控制是否跳过缓存上传文件服务器。 True:是。 为空:否。
commit: ${commitId} ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 artifact_path string 可选参数。 构建结果所在路径,OBS存储文件名为空时,可使用通配符上传多个文件。如:maven可以使用**/target/*