Compare commits

..

1 Commits

Author SHA1 Message Date
Administrator
7373dad222 Ullam et numquam impedit. 2021-02-15 15:54:25 +00:00
5 changed files with 68 additions and 86 deletions

View File

@@ -1,71 +0,0 @@
#定义变量
variables:
#获取当前时间戳
DATE: $(date +%Y%m%d)
#定义克隆的路径 $CI_BUILDS_DIR 为 runners.builds_dir 设置的路径
CLONE_NO_TIME_PATH: $CI_BUILDS_DIR/gap_tsg_api1
#定义克隆的路径 $CI_BUILDS_DIR 为 runners.builds_dir 设置的路径
GIT_CLONE_PATH: $CI_BUILDS_DIR/gap_tsg_api1$DATE
#git ssh 地址
GITLAB_SSH: git@git.mesalab.cn:yangyongqiang/yyq_test.git
# 指定git获取代码的方式clone,fetch,none
GIT_STRATEGY: clone
#在作业之前执行的脚本或命令
before_script:
- echo "环境部署操作"
- echo $DATE
# 创建对应目录
- mkdir -p $CLONE_NO_TIME_PATH$(date +%Y%m%d)
- cd $CLONE_NO_TIME_PATH$(date +%Y%m%d)
- pwd
#在作业之后执行的脚本或命令
after_script:
# - echo "克隆完成"
#配置目录的用户权限
# - chown root $GIT_CLONE_PATH
# 全局定义流水线阶段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
master_build:
stage: build
script:
- echo $DATE
- echo "正式服务器环境配置"
- if [ ! -d ".git" ]; then
- git clone -b master $GITLAB_SSH $CLONE_NO_TIME_PATH$(date +%Y%m%d) --depth 1
- else
- git stash
- fi
- git pull origin master
- echo $DATE
only:
- master
tags:
- master

View File

@@ -1,8 +1,47 @@
# Sample GitLab Project #### Repellendus
Quia qui quaerat.
This sample project shows how a project in GitLab looks for demonstration purposes. It contains issues, merge requests and Markdown files in many branches, * Quis.
named and filled with lorem ipsum. * Aut.
* Assumenda.
You can look around to get an idea how to structure your project and, when done, you can safely delete this project. * Est.
* Nulla.
[Learn more about creating GitLab projects.](https://docs.gitlab.com/ee/gitlab-basics/create-project.html) * Quos.
* Dicta.
* Aut.
* At.
* Molestias.
### Vel
Cupiditate laboriosam placeat.
0. Vel.
1. Rerum.
2. Illum.
3. Qui.
4. Aut.
5. Et.
6. Quas.
###### Autem
Omnis cupiditate maxime.
```ruby
Perferendis.
```###### Mollitia
Itaque quasi aut.
Vel laborum necessitatibus. Expedita et eos. Voluptatum _aut_ sint.#### Odio
Deleniti autem consequatur.
`Impedit.`###### Nesciunt
Et quam dolor.
Qui delectus **voluptatem.** Quo aut fugit. Ut quas cum.###### Ab
Sint molestiae sint.
voluptatum | necessitatibus | blanditiis
---- | ---- | ----
ipsam | est | aut
reprehenderit | quae | recusandae### Alias
Aut sit non.
`Molestiae.`# Reprehenderit
Nemo aperiam officiis.
* Et.
* Magni.
* Aut.
* Doloribus.
* Iste.
* Ut.
* Id.

View File

@@ -1,3 +0,0 @@
<?php
echo 'hello word!';
?>

View File

@@ -1,4 +0,0 @@
<properties>
<java.version>1.8</java.version>
<docker.image.prefix>springboot</docker.image.prefix>
</properties>

View File

@@ -0,0 +1,21 @@
#### Et
Quisquam reiciendis tempore.
```ruby
Provident.
```##### Quis
Vel ut nemo.
Quia voluptatem quis. Est vel _repellat._ Cumque amet eaque.# Magni
Sint molestias accusamus.
Incidunt et a. Provident aliquid eveniet. ~Velit~ facere culpa.### Accusantium
Porro rerum voluptas.
```ruby
Et.
```# Dolores
Et est eaque.
* Magnam.
* Sed.
* Consequatur.
* Modi.
* Ea.
* Eaque.
* Atque.