Skip to content

Commit 1ce4de6

Browse files
RegadPolegitee-org
RegadPole
authored andcommitted
update maven.yml
1 parent e558f58 commit 1ce4de6

File tree

1 file changed

+23
-33
lines changed

1 file changed

+23
-33
lines changed

.workflow/maven.yml

+23-33
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ stages:
3434
- regadpole
3535
steps:
3636
- step: build@maven
37-
name: build_bukkit
37+
name: build
3838
displayName: Maven 构建
3939
jdkVersion: '17'
4040
mavenVersion: 3.6.3
@@ -57,57 +57,47 @@ stages:
5757
- name: BUILD_BUKKIT
5858
path:
5959
- ./plumbot-bukkit/target/plumbot*.jar
60+
- name: BUILD_BUNGEE
61+
path:
62+
- ./plumbot-bungee/target/plumbot*.jar
63+
- name: BUILD_VELOCITY
64+
path:
65+
- ./plumbot-velocity/target/plumbot*.jar
6066
settings: []
6167
caches: []
6268
notify: []
6369
strategy:
6470
retry: '0'
71+
- name: stage-d36277c4
72+
displayName: 上传文件
73+
strategy: naturally
74+
trigger: auto
75+
executor:
76+
- regadpole
77+
steps:
6578
- step: publish@general_artifacts
66-
name: publish_bukkit_artifacts
67-
displayName: 上传制品
79+
name: upload_bukkit
80+
displayName: 上传bukkit插件
6881
dependArtifact: BUILD_BUKKIT
6982
artifactName: plumbot-bukkit
7083
notify: []
7184
strategy:
7285
retry: '0'
73-
dependsOn: build_bukkit
74-
- step: build@maven
75-
name: build_velocity
76-
displayName: Maven 构建
77-
jdkVersion: '17'
78-
mavenVersion: 3.6.3
79-
commands:
80-
- '# 功能:打包'
81-
- '# 参数说明:'
82-
- '# -Dmaven.test.skip=true:跳过单元测试'
83-
- '# -U:每次构建检查依赖更新,可避免缓存中快照版本依赖不更新问题,但会牺牲部分性能'
84-
- '# -e -X :打印调试信息,定位疑难构建问题时建议使用此参数构建'
85-
- '# -B:以batch模式运行,可避免日志打印时出现ArrayIndexOutOfBoundsException异常'
86-
- '# 使用场景:打包项目且不需要执行单元测试时使用'
87-
- mvn clean package -Dmaven.test.skip=true -U -e -X -B
88-
- ''
89-
- '# 功能:自定义settings配置'
90-
- '# 使用场景:如需手工指定settings.xml,可使用如下方式'
91-
- '# 注意事项:如无需自定义settings配置且需要私有依赖仓库,可在该任务配置《私有仓库》处添加私有依赖'
92-
- '# mvn -U clean package -s ./settings.xml'
93-
- ''
94-
artifacts:
95-
- name: BUILD_VELOCITY
96-
path:
97-
- ./plumbot-velocity/target/plumbot*.jar
98-
settings: []
99-
caches: []
86+
- step: publish@general_artifacts
87+
name: upload_bungee
88+
displayName: 上传bungee插件
89+
dependArtifact: BUILD_BUNGEE
90+
artifactName: plumbot-bungee
10091
notify: []
10192
strategy:
10293
retry: '0'
10394
- step: publish@general_artifacts
104-
name: publish_velocity_artifacts
105-
displayName: 上传制品
95+
name: upload_velocity
96+
displayName: 上传velocity插件
10697
dependArtifact: BUILD_VELOCITY
10798
artifactName: plumbot-velocity
10899
notify: []
109100
strategy:
110101
retry: '0'
111-
dependsOn: build_velocity
112102
strategy:
113103
blocking: true

0 commit comments

Comments
 (0)