检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
npm run build ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Npm命令,更多命令使用方法可参考Node.js官网。 ignore_fail string 用
command: ant -f build.xml ignore_fail: true 表2 代码示例参数说明 参数名称 参数类型 参数说明 command string 配置Ant构建命令。更多命令使用方法可参考Ant官网。 ignore_fail string 用
inputs: command: make ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置方舟编译器的执行命令。 ignore_fail string 用于控制当前步骤执行失败后是否继续执行下一个步骤。
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 用于控制当前步骤执行失败后是否继续执行下一个步骤。
私有依赖库”。 单击“新建”,按照表2配置参数。 表2 新建私有依赖库参数说明 参数 说明 仓库类型 选择“本地仓”。 仓库名称 自定义仓库名称,例如“maven_repository”。 制品类型 选择“Maven”。 归属项目 默认填写为“build-bestpractice”,无需手动填写。
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 用于控
--max_new_space_size=1024 test.js // 单位为KB 修改新生代内存限制 针对前端三大框架的解决方法如下: 框架类型 解决方法 Vue 只需要修改“package.json”文件中“build”属性值,在命令中加入带参数的node命令即可,例如: "build":
--stacktrace ignore_fail: true 表2 Android构建代码示例参数说明 参数名称 参数类型 参数说明 command string 填写Gradle执行命令。如果需要配置更多命令,可参考Gradle官网。 gradle string
depth: 100 tag: ${tag} path: test 表2 单仓下载代码示例参数说明 参数 类型 说明 scm string 填写代码源:当前只支持Repo,如果yaml文件中没配置,则使用构建任务配置的代码仓信息。 默认值:codehub。
添加自定义参数的配置指导 在编译构建任务配置页面,切换至“参数设置”页签,单击“新建参数”,参考表2配置参数。 表2 添加自定义参数 名称 类型 默认值 私密参数 运行时设置 参数描述 自定义参数名称。支持字母,数字,下划线“_”,长度不超过128个字符。 说明: 以下字段不可用:
example.com:test/python3.git # 选填,可自定义,与branch一起确定缓存标签 表1 配置参数表 参数项 参数类型 描述 是否必填 CLOUD_BUILD_UPLOAD_FLAG String 用于控制是否跳过缓存上传文件服务器。 True:是。 为空:否。
tar -zcvf demo.tar.gz ./** ignore_fail: true 表2 代码示例参数说明 参数 类型 说明 command string 配置Yarn命令。更多命令使用方法可参考Yarn官网。 ignore_fail string 用于控