Browse Source

测试分支

zdd 2 years ago
parent
commit
7309d7fea8
1 changed files with 2 additions and 5 deletions
  1. 2 5
      .drone.yml

+ 2 - 5
.drone.yml

@@ -12,6 +12,7 @@ jars:
   - 'airport_stock'
   - 'airport_workflow'
   - 'airport_gateway'
+
 trigger:
   branch:
     - test
@@ -25,11 +26,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
       - name: maven-build
         path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
     commands: # 定义在Docker容器中执行的shell命令
-      - arrayWen=(${jars})
-      - for var in ${arrayWen[@]};
-      - do
-      - echo ${var}
-      - done
+      - echo ${trigger.branch}
       - mvn clean package # 应用打包命令
       - cp target/code-test-1.0.0.jar /app/build/code-test-1.0.0.jar
       - cp Dockerfile /app/build/Dockerfile