diff options
| author | 杨永强 <[email protected]> | 2021-10-28 01:59:32 +0000 |
|---|---|---|
| committer | 杨永强 <[email protected]> | 2021-10-28 01:59:32 +0000 |
| commit | 8a7f1568588e20d9d8da899221dfd673ae30639a (patch) | |
| tree | 82c5d1ac51301ab2aa9343f9469a946b194160b3 | |
| parent | c2a5108a3b8faade0c5bea1c5295d9e8064cf5fd (diff) | |
更新.gitlab-ci.yml文件
| -rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e1eba3..943b46e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,17 @@ #定义变量 variables: + #获取当前时间戳 + DATE: $(date +%Y%m%d%H%I%s) + #定义克隆的路径 $CI_BUILDS_DIR 为 runners.builds_dir 设置的路径 - GIT_CLONE_PATH: $CI_BUILDS_DIR/gap_tsg_api$(date +%Y%m%d%H%I%s) + GIT_CLONE_PATH: $CI_BUILDS_DIR/gap_tsg_api$DATE #git ssh 地址 GITLAB_SSH: [email protected]:yangyongqiang/yyq_test.git # 指定git获取代码的方式(clone,fetch,none) GIT_STRATEGY: clone - #获取当前时间戳 - # DATE = $(date +%Y%m%d%H%I%s) + #在作业之前执行的脚本或命令 before_script: |
