Files
MES/yawei-mes/.workflow/trmes.yml
2026-04-02 10:39:03 +08:00

47 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '1.0'
name: pipeline-20230706
displayName: 天润服务器
triggers:
trigger: auto
push:
branches:
prefix:
- master
stages:
- name: stage-3420df8a
displayName: 未命名
strategy: naturally
trigger: auto
executor: []
steps:
- step: build@maven
name: build_maven
displayName: Maven 构建
jdkVersion: '8'
mavenVersion: 3.3.9
commands:
- '# 功能:打包'
- '# 参数说明:'
- '# -Dmaven.test.skip=true跳过单元测试'
- '# -U每次构建检查依赖更新可避免缓存中快照版本依赖不更新问题但会牺牲部分性能'
- '# -e -X :打印调试信息,定位疑难构建问题时建议使用此参数构建'
- '# -B以batch模式运行可避免日志打印时出现ArrayIndexOutOfBoundsException异常'
- '# 使用场景:打包项目且不需要执行单元测试时使用'
- mvn clean package -Dmaven.test.skip=true -U -e -X -B
- ''
- '# 功能自定义settings配置'
- '# 使用场景如需手工指定settings.xml可使用如下方式'
- '# 注意事项如无需自定义settings配置且需要私有依赖仓库可在该任务配置《私有仓库》处添加私有依赖'
- '# mvn -U clean package -s ./settings.xml'
- ''
artifacts:
- name: BUILD_ARTIFACT
path:
- ./target
settings: []
caches:
- ~/.m2
notify: []
strategy:
retry: '0'