From 9ea961bf56b8f7587ea6441630fa437bb4914e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B0=B8=E5=BC=BA?= Date: Thu, 28 Oct 2021 01:06:14 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitlab-ci.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7aba6d9..53c4473 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,23 +25,24 @@ after_script: # 全局定义流水线阶段(pipeline) stages: - build -develop_build: - stage: build - #需要执行的shell脚本 - script: - - echo "开发服务器环境配置" - - if [ ! -d ".git" ]; then - - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1 - - else - - git stash - - fi - - git pull - only: - # 指定分支 - - develop - tags: - # 指定执行作业的runner - - develop + +# develop_build: +# stage: build +# #需要执行的shell脚本 +# script: +# - echo "开发服务器环境配置" +# - if [ ! -d ".git" ]; then +# - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1 +# - else +# - git stash +# - fi +# - git pull +# only: +# # 指定分支 +# - develop +# tags: +# # 指定执行作业的runner +# - develop master_build: stage: build