diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-06-07 13:01:52 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-06-07 13:01:52 +0300 |
commit | 4b086b74509500998bdc28a82871aa2c9003a194 (patch) | |
tree | 24ae22da7dda0e328981c355417f691568f8f2b5 /doc | |
parent | fd19f887dfeeeedb483c4a4fb32f9f768e89389c (diff) | |
parent | b8704dce72fd8992b1f785c0ffa2f2c0eab81334 (diff) |
Merge branch '62418-project-default-git-depth' into 'master'
Add project level git depth setting
Closes #59688
See merge request gitlab-org/gitlab-ce!28919
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/project/pipelines/settings.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/user/project/pipelines/settings.md b/doc/user/project/pipelines/settings.md index 8b762307ac4..16f48c462eb 100644 --- a/doc/user/project/pipelines/settings.md +++ b/doc/user/project/pipelines/settings.md @@ -20,6 +20,22 @@ There are two options. Using: The default Git strategy can be overridden by the [GIT_STRATEGY variable](../../../ci/yaml/README.md#git-strategy) in `.gitlab-ci.yml`. +## Git shallow clone + +> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28919) in GitLab 12.0. + +NOTE: **Note**: As of GitLab 12.0, newly created projects will automaticallyl have a default +`git depth` value of `50`. + +It is possible to limit the number of changes that GitLab CI/CD will fetch when cloning +a repository. Setting a limit to `git depth` can speed up Pipelines execution. Maximum +allowed value is `1000`. + +To disable shallow clone and make GitLab CI/CD fetch all branches and tags each time, +keep the value empty or set to `0`. + +This value can also be [overridden by `GIT_DEPTH`](../../../ci/large_repositories/index.md#shallow-cloning) variable in `.gitlab-ci.yml` file. + ## Timeout Timeout defines the maximum amount of time in minutes that a job is able run. |