mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-30 02:48:17 +08:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
version: '1.0'
|
|
name: master-pipeline
|
|
displayName: MasterPipeline
|
|
triggers:
|
|
trigger: auto
|
|
push:
|
|
branches:
|
|
precise:
|
|
- master
|
|
- dev
|
|
stages:
|
|
- name: compile
|
|
displayName: 编译
|
|
strategy: naturally
|
|
trigger: auto
|
|
steps:
|
|
- step: build@maven
|
|
name: build_maven
|
|
displayName: Maven 构建
|
|
jdkVersion: 8
|
|
mavenVersion: 3.6.3
|
|
commands:
|
|
- 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
|
|
artifacts:
|
|
- name: BUILD_ARTIFACT
|
|
path:
|
|
- ./modules/server/target/server-2.8.22-release/
|
|
- ./modules/agent/target/agent-2.8.22-release/
|
|
- step: publish@general_artifacts
|
|
name: publish_general_artifacts
|
|
displayName: 上传制品
|
|
dependArtifact: BUILD_ARTIFACT
|
|
artifactName: output
|
|
dependsOn: build_maven
|