'build
This commit is contained in:
parent
3177130523
commit
e253315641
@ -4,11 +4,13 @@ name: microservice-build
|
|||||||
|
|
||||||
# 定义全局环境变量
|
# 定义全局环境变量
|
||||||
environment:
|
environment:
|
||||||
SERVICE: ${DRONE_SERVICE}
|
SERVICE: ""
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-service
|
- name: build-service
|
||||||
image: maven:3-jdk-8
|
image: maven:3-jdk-8
|
||||||
|
environment:
|
||||||
|
SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量
|
||||||
commands:
|
commands:
|
||||||
- echo "Building Service: ${SERVICE}"
|
- echo "Building Service: ${SERVICE}"
|
||||||
- |
|
- |
|
||||||
@ -26,6 +28,8 @@ steps:
|
|||||||
|
|
||||||
- name: test-service
|
- name: test-service
|
||||||
image: maven:3-jdk-8
|
image: maven:3-jdk-8
|
||||||
|
environment:
|
||||||
|
SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量
|
||||||
commands:
|
commands:
|
||||||
- echo "Testing Service: ${SERVICE}"
|
- echo "Testing Service: ${SERVICE}"
|
||||||
- |
|
- |
|
||||||
|
Loading…
Reference in New Issue
Block a user