浏览代码

Gitlab CI文件 加tags

LD 5 年之前
父节点
当前提交
44e7bc063a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .gitlab-ci.yml

+ 6 - 0
.gitlab-ci.yml

@@ -5,6 +5,8 @@ stages:
 
 
 build_maven:
 build_maven:
   stage: build
   stage: build
+  tags:
+    - was
   script:
   script:
     - echo "build maven....."
     - echo "build maven....."
     - echo "mvn clean"
     - echo "mvn clean"
@@ -12,6 +14,8 @@ build_maven:
 
 
 test_springboot:
 test_springboot:
   stage: test
   stage: test
+  tags:
+    - was
   script:
   script:
     - echo "run java test....."
     - echo "run java test....."
     - echo "java -test"
     - echo "java -test"
@@ -19,6 +23,8 @@ test_springboot:
 
 
 deploy_springboot:
 deploy_springboot:
   stage: deploy
   stage: deploy
+  tags:
+    - was
   script:
   script:
     - echo "deploy springboot...."
     - echo "deploy springboot...."
     - echo "run mvn install"
     - echo "run mvn install"