Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • GitCode
  • 帮助文档
  • Wiki
    • Docs
    • Ci
    • Pipelines
  • settings

帮
帮助文档
  • 项目概览

GitCode / 帮助文档

通知 1627
Star 125
Fork 140
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
  • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • Wiki 89
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
帮
帮助文档
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 166
    • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
    • 合并请求 23
  • Pages
  • DevOps
    • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 89
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 流水线任务
  • 提交
  • Issue看板

settings · 变更

页面历史
update translate 编写于 6月 04, 2021 作者: Miykael_xxm's avatar Miykael_xxm
显示空白变更内容
内联 并排
Showing with 7 addition and 7 deletion
+7 -7
  • docs/ci/pipelines/settings.md docs/ci/pipelines/settings.md +7 -7
  • 未找到文件。
docs/ci/pipelines/settings.md
View page @ fbd4f404
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
* `git clone` ,速度较慢,因为它会为每个作业从头开始克隆存储库,以确保本地工作副本始终是原始的. * `git clone` ,速度较慢,因为它会为每个作业从头开始克隆存储库,以确保本地工作副本始终是原始的.
* `git fetch` ,它更快地重新使用本地工作副本(如果不存在,则回退为克隆). * `git fetch` ,它更快地重新使用本地工作副本(如果不存在,则回退为克隆).
默认的 Git 策略可以由`.gitlab-ci.yml`的[GIT_STRATEGY 变量](../yaml/README.html#git-strategy)覆盖. 默认的 Git 策略可以由`.codechina-ci.yml`的[GIT_STRATEGY 变量](../yaml/README.html#git-strategy)覆盖.
## Git shallow clone[](#git-shallow-clone "Permalink") ## Git shallow clone[](#git-shallow-clone "Permalink")
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
要禁用浅表克隆并使 GitLab CI / CD 每次获取所有分支和标签,请将值保留为空或设置为`0` . 要禁用浅表克隆并使 GitLab CI / CD 每次获取所有分支和标签,请将值保留为空或设置为`0` .
`.gitlab-ci.yml`文件中的[`GIT_DEPTH`](../large_repositories/index.html#shallow-cloning)变量也可以[覆盖](../large_repositories/index.html#shallow-cloning)此值. `.codechina-ci.yml`文件中的[`GIT_DEPTH`](../large_repositories/index.html#shallow-cloning)变量也可以[覆盖](../large_repositories/index.html#shallow-cloning)此值.
## Timeout[](#timeout "Permalink") ## Timeout[](#timeout "Permalink")
...@@ -75,9 +75,9 @@ ...@@ -75,9 +75,9 @@
版本历史 版本历史
* 在 GitLab 9.4 中[引入](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/12509) . * 在 GitLab 9.4 中[引入](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/12509) .
* [支持](https://gitlab.com/gitlab-org/gitlab/-/issues/14376)在 GitLab 12.6 中引入的[外部`.gitlab-ci.yml`位置](https://gitlab.com/gitlab-org/gitlab/-/issues/14376) . * [支持](https://gitlab.com/gitlab-org/gitlab/-/issues/14376)在 GitLab 12.6 中引入的[外部`.codechina-ci.yml`位置](https://gitlab.com/gitlab-org/gitlab/-/issues/14376) .
默认情况下,我们在项目的根目录中查找`.gitlab-ci.yml`文件. 如果需要,您可以指定备用路径和文件名,包括项目外部的位置. 默认情况下,我们在项目的根目录中查找`.codechina-ci.yml`文件. 如果需要,您可以指定备用路径和文件名,包括项目外部的位置.
要自定义路径: 要自定义路径:
...@@ -88,9 +88,9 @@ ...@@ -88,9 +88,9 @@
如果 CI 配置在非默认位置存储在资源库中,则该路径必须相对于根目录. 有效路径和文件名的示例包括: 如果 CI 配置在非默认位置存储在资源库中,则该路径必须相对于根目录. 有效路径和文件名的示例包括:
* `.gitlab-ci.yml` (default) * `.codechina-ci.yml` (default)
* `.my-custom-file.yml` * `.my-custom-file.yml`
* `my/path/.gitlab-ci.yml` * `my/path/.codechina-ci.yml`
* `my/path/.my-custom-file.yml` * `my/path/.my-custom-file.yml`
如果 CI 配置将托管在外部站点上,则 URL 链接必须以`.yml` : 如果 CI 配置将托管在外部站点上,则 URL 链接必须以`.yml` :
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
如果 CI 配置将托管在 GitLab 中的其他项目中,则该路径必须相对于另一个项目中的根目录,并在最后添加组和项目名称: 如果 CI 配置将托管在 GitLab 中的其他项目中,则该路径必须相对于另一个项目中的根目录,并在最后添加组和项目名称:
* `.gitlab-ci.yml@mygroup/another-project` * `.codechina-ci.yml@mygroup/another-project`
* `my/path/.my-custom-file.yml@mygroup/another-project` * `my/path/.my-custom-file.yml@mygroup/another-project`
将配置文件托管在单独的项目中,可以更严格地控​​制配置文件. 例如: 将配置文件托管在单独的项目中,可以更严格地控​​制配置文件. 例如:
......
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7