27 lines
444 B
YAML
27 lines
444 B
YAML
# 本次构建的阶段: compile、package、deploy
|
|
stages:
|
|
- compile
|
|
- package
|
|
|
|
# 编译
|
|
compile:
|
|
stage: compile
|
|
tags:
|
|
- linux-maven
|
|
only:
|
|
- master
|
|
script:
|
|
- echo "=============== 开始编译任务 ==============="
|
|
- mvn compile
|
|
|
|
# 打包
|
|
package:
|
|
stage: package
|
|
tags:
|
|
- linux-maven
|
|
only:
|
|
- master
|
|
script:
|
|
- echo "=============== 开始打包任务 ==============="
|
|
- mvn clean package
|