更新.gitlab-ci.yml文件
This commit is contained in:
@@ -25,23 +25,24 @@ after_script:
|
|||||||
# 全局定义流水线阶段(pipeline)
|
# 全局定义流水线阶段(pipeline)
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
develop_build:
|
|
||||||
stage: build
|
# develop_build:
|
||||||
#需要执行的shell脚本
|
# stage: build
|
||||||
script:
|
# #需要执行的shell脚本
|
||||||
- echo "开发服务器环境配置"
|
# script:
|
||||||
- if [ ! -d ".git" ]; then
|
# - echo "开发服务器环境配置"
|
||||||
- git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
|
# - if [ ! -d ".git" ]; then
|
||||||
- else
|
# - git clone -b master $GITLAB_SSH $GIT_CLONE_PATH --depth 1
|
||||||
- git stash
|
# - else
|
||||||
- fi
|
# - git stash
|
||||||
- git pull
|
# - fi
|
||||||
only:
|
# - git pull
|
||||||
# 指定分支
|
# only:
|
||||||
- develop
|
# # 指定分支
|
||||||
tags:
|
# - develop
|
||||||
# 指定执行作业的runner
|
# tags:
|
||||||
- develop
|
# # 指定执行作业的runner
|
||||||
|
# - develop
|
||||||
|
|
||||||
master_build:
|
master_build:
|
||||||
stage: build
|
stage: build
|
||||||
|
|||||||
Reference in New Issue
Block a user