Jpom/.workflow/MasterPipeline.yml

61 lines
1.8 KiB
YAML
Raw Normal View History

2021-11-18 22:06:48 +08:00
version: '1.0'
name: master-pipeline
displayName: MasterPipeline
2022-05-28 19:32:12 +08:00
triggers:
trigger: manual
2022-05-28 19:32:12 +08:00
push:
branches:
precise:
- master
- dev
2021-11-18 22:06:48 +08:00
stages:
2022-05-28 19:32:12 +08:00
- name: compile
displayName: 编译
strategy: naturally
trigger: auto
2021-11-18 22:06:48 +08:00
steps:
- step: build@maven
name: build_maven
displayName: Maven 构建
jdkVersion: 8
mavenVersion: 3.6.3
commands:
2022-05-28 19:32:12 +08:00
- curl -LfsSo /opt/node-v16.13.1-linux-x64.tar.gz https://npmmirror.com/mirrors/node/v16.13.1/node-v16.13.1-linux-x64.tar.gz
- tar -zxf /opt/node-v16.13.1-linux-x64.tar.gz -C /opt/ && export PATH=/opt/node-v16.13.1-linux-x64/bin:$PATH
- npm config set registry https://registry.npmmirror.com/
- cd web-vue && npm install && npm run build
- cd ..
- mvn -B -e clean package -Dmaven.test.skip=true -Dmaven.compile.fork=true -s script/settings.xml
2021-11-18 22:06:48 +08:00
artifacts:
- name: all_zip
2021-11-18 22:06:48 +08:00
path:
2023-03-03 16:15:23 +08:00
- modules/server/target/server-2.10.25-release.zip
- modules/agent/target/agent-2.10.25-release.zip
- name: server_zip
path:
2023-03-03 16:15:23 +08:00
- modules/server/target/server-2.10.25-release.zip
- name: agent_zip
path:
2023-03-03 16:15:23 +08:00
- modules/agent/target/agent-2.10.25-release.zip
settings: []
strategy:
retry: '0'
- name: stage-0aa9dee2
displayName: 打包
strategy: naturally
trigger: auto
executor: []
steps:
2021-11-18 22:06:48 +08:00
- step: publish@general_artifacts
name: publish_general_artifacts
displayName: 合并打包
dependArtifact: all_zip
2023-03-03 16:15:23 +08:00
artifactName: jpom-2.10.25
strategy:
retry: '0'
strategy:
blocking: true
permissions:
- role: admin
members: []