检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
在镜像详情页面中,单击对应镜像版本“下载指令”列的复制图标,复制镜像下载指令。 修改代码仓中Dockerfile文件,将文件中镜像地址修改为步骤3中拷贝的地址。 父主题: 镜像问题
CreateBuildJobScm 参数 参数类型 描述 branch String 代码分支 url String 代码仓地址 repo_id String repo的id web_url String 代码仓http地址 scm_type String 仓库类别,Repo、Github等 is_auto_build
第3行默认命令中“http://mirrors.huaweicloud.com/repository/php/”为官网仓库地址,如果用户访问不了该地址会导致构建失败,需替换成用户可以访问的仓库地址。 失败后是否继续运行 当前步骤执行失败后是否继续执行下一个步骤,根据实际使用场景选择是或否。 代码化构建
Eclipse普通Java项目上云 问题现象 在Eclipse上开发的Java web项目无法在CodeArts Build上构建出包,需要转换项目。本文档将指导您如何将项目改造成Ant项目,在CodeArts Build上使用Ant工具进行构建出包。 处理方法 在项目中创建一个build
xml”文件到编译构建服务的“文件管理”中。 新建CodeArts Repo代码仓 新建本实践需要使用的代码仓。 配置Maven构建产物发布的私有依赖库地址 配置构建产物上传的私有依赖库的地址。 新建编译构建任务 新建本实践需要使用的编译构建任务。 配置构建步骤并执行构建任务 配置“下载文件管理的文件”和“Maven构建”步骤并执行构建任务。
login:登录docker仓库。 用法:docker login [options] [server] options填写方法如下表,server为docker仓库地址。 参数 对应短名称 说明 --password -p 登录仓库的用户密码。 --username -u 登录仓库的用户名。 --password
执行Npm构建时,报错提示JavaScript heap out of memory 问题现象 执行Npm构建任务时,日志报如下异常信息: FATAL ERROR:CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out
在弹性云服务器列表页,单击购买的服务器所在行的“远程登录”。 选择VNC登录方式。 登录成功后,输入购买Windows服务器时预置的密码,登录到Windows系统桌面。 浏览器地址栏输入“https://www.java.com/zh-CN/”,访问该网站。 在浏览器页面单击“下载Java”。 在下载页面,单击“Download
scm: codehub # 代码来源:仅支持Repo url: xxxxxxxxx # 拉取代码的ssh地址。 branch: ${codeBranch} # 任何时候都必填,支持参数化 commit:
PATH="${NODEJS_HOME}/bin:${PATH}" Node.js包(如本例中的node-v10.15.3)的下载地址请访问华为开源镜像站查找并复制链接地址。 保存后,执行构建验证。 父主题: Maven构建
参数类型 描述 branch 否 String 代码分支 url 是 String 代码仓地址 repo_id 是 String repo的id web_url 是 String 代码仓http地址 scm_type 是 String 仓库类别,Repo、Github等 is_auto_build
类型 说明 image string 填写镜像地址,有以下两种格式。 cloudbuild@nodejs8.11.2:以cloudbuild开始,@作为分隔符,后面是CodeArts Build提供的默认镜像版本。 完整的swr镜像地址,例如:swr.example.example
repository String 仓库地址 branch String 分支名 revision String commitId build_yml_path String yaml路径 build_yml_url String yaml地址 daily_build_number
repository String 仓库地址 branch String 分支名 revision String commitId build_yml_path String yaml路径 build_yml_url String yaml地址 daily_build_number
返回一个资源特征与地址的列表用于用户终端(例如:浏览器)选择。 301 Moved Permanently 永久移动,请求的资源已被永久的移动到新的URI,返回信息会包括新的URI。 302 Found 资源被临时移动。 303 See Other 查看其它地址。 使用GET和POST请求查看。
String 代码仓分支 scm_type String 代码源类型 scm_web_url String 代码源地址 commit_detail_url String 代码提交记录信息地址(代码源为Repo) 表4 commit_info 参数 参数类型 描述 commit_id String
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
String 代码仓分支 scm_type String 代码源类型 scm_web_url String 代码源地址 commit_detail_url String 代码提交记录信息地址(代码源为Repo) 表6 commit_info 参数 参数类型 描述 commit_id String