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:
|
2022-05-28 22:03:59 +08:00
|
|
|
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:
|
2022-05-28 21:18:35 +08:00
|
|
|
- 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
|
2022-05-28 21:19:53 +08:00
|
|
|
- name: server_zip
|
|
|
|
path:
|
2023-03-03 16:15:23 +08:00
|
|
|
- modules/server/target/server-2.10.25-release.zip
|
2022-05-28 21:19:53 +08:00
|
|
|
- name: agent_zip
|
|
|
|
path:
|
2023-03-03 16:15:23 +08:00
|
|
|
- modules/agent/target/agent-2.10.25-release.zip
|
2022-05-28 21:19:53 +08:00
|
|
|
settings: []
|
|
|
|
strategy:
|
|
|
|
retry: '0'
|
2022-05-28 21:24:25 +08:00
|
|
|
- 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
|
2022-05-28 21:24:25 +08:00
|
|
|
displayName: 合并打包
|
2022-05-28 21:18:35 +08:00
|
|
|
dependArtifact: all_zip
|
2023-03-03 16:15:23 +08:00
|
|
|
artifactName: jpom-2.10.25
|
2022-05-28 21:18:35 +08:00
|
|
|
strategy:
|
|
|
|
retry: '0'
|
2022-05-28 22:19:53 +08:00
|
|
|
strategy:
|
|
|
|
blocking: true
|
2022-05-28 21:17:10 +08:00
|
|
|
permissions:
|
|
|
|
- role: admin
|
|
|
|
members: []
|