1. 创建流水线
填写基本信息,选择源码库,模板选择MAVEN构建
创建成功,保存并执行
2. 执行
执行构建步骤失败,点击图示处查看日志
日志显示目标版本11无效
3. 修改构建参数
点击编辑回到编辑状态,点击编辑任务构建任务项目
点选项目查看配置明细
可以看到默认MAVEN模板使用JDK8版本工具,修改为JDK11版本工具,保存
重新执行
回到流水线页面,点击从失败处重试,执行成功
自动发布到华为云私有制件库
- 在构建配置中,修改命令mvn package为mvn deploy
- 并在发布依赖包到DevCloud私有依赖库中选择配置所有pom
- 选择对应的仓库