From 3367d030392b8f74e4264ec12de16cfd721374b8 Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Thu, 22 Aug 2024 17:22:27 +0800 Subject: [PATCH] 'build' --- .drone.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index bbb6327..c54d6d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,14 +13,9 @@ steps: SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量 commands: - echo "Building Service: ${SERVICE}" - - > - if [ "${SERVICE}" = "gateway-service" ]; then - echo "Building Gateway Service..." - elif [ "${SERVICE}" = "system-service" ]; then - echo "Building System Service..." - else - echo "Building All Services..." - fi + - if [ "${SERVICE}" = "gateway-service" ]; then echo "Building Gateway Service..."; fi + - if [ "${SERVICE}" = "system-service" ]; then echo "Building System Service..."; fi + - if [ "${SERVICE}" = "" ]; then echo "Building All Services..."; fi - name: test-service image: maven:3-jdk-8 @@ -28,14 +23,9 @@ steps: SERVICE: ${DRONE_SERVICE} # 在每个步骤中引用环境变量 commands: - echo "Testing Service: ${SERVICE}" - - > - if [ "${SERVICE}" = "gateway-service" ]; then - echo "Testing Gateway Service..." - elif [ "${SERVICE}" = "system-service" ]; then - echo "Testing System Service..." - else - echo "Testing All Services..." - fi + - if [ "${SERVICE}" = "gateway-service" ]; then echo "Testing Gateway Service..."; fi + - if [ "${SERVICE}" = "system-service" ]; then echo "Testing System Service..."; fi + - if [ "${SERVICE}" = "" ]; then echo "Testing All Services..."; fi parameters: SERVICE: