feat: .devops/项目编译项目编译项目编译项目编译项目.yml

This commit is contained in:
raojing 2023-02-13 10:25:11 +08:00 committed by jianmu
parent adaf2302aa
commit c0b2bfbbbd
1 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,69 @@
version: 2
name: 项目编译项目编译项目编译项目编译项目
description: ""
global:
concurrent: 30
param:
- ref: cc
name: cc
type: NUMBER
required: false
value: '"3"'
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: 克隆gitlink仓库
task: git_clone@1.2.5
input:
remote_url: '"https://gitlink.org.cn/Vaesion/jianmu.git"'
ref: '"refs/heads/master"'
commit_id: "''"
depth: 1
needs:
- start
- ref: maven_build_0
name: maven编译测试
on-failure: ignore
task: maven_build@1.3.1-jdk11
input:
workspace: git_clone_0.git_path
mvn_action: '"test"'
extra_arge: '""'
nexus_username: admin
nexus_password: "123456"
maven_public_id: '"public"'
maven_public_url: '"https://maven.aliyun.com/repository/public"'
maven_release_id: '"release"'
maven_release_url: '""'
maven_snapshot_id: '"snapshot"'
maven_snapshot_url: '""'
docker_username: jianmudev
docker_password: "123456"
image_name: '"imagename"'
image_tag: '"latest"'
vc_pom_dir: '"."'
needs:
- git_clone_0
- ref: feishu_notice_interactive_0
name: 飞书通知
task: feishu_notice_interactive@1.0.4
input:
bot_webhook_url: ((feishu.webhook_url))
msg_title: "maven_build_0.inner.execution_status === 'EXECUTION_SUCCEEDED' ?
'项目编译测试完成' : '项目编译测试失败'"
app_id: ((xxx.xxx))
app_secret: ((xxx.xxx))
image_url: '""'
msg_text: '""'
msg_markdown: '""'
msg_at_phone_list: '"[]"'
needs:
- maven_build_0
- ref: end
name: 结束
task: end
needs:
- feishu_notice_interactive_0