summaryrefslogtreecommitdiff
path: root/doc/ci
diff options
context:
space:
mode:
authorMark Pundsack <markpundsack@users.noreply.github.com>2016-06-16 13:15:50 -0700
committerMark Pundsack <markpundsack@users.noreply.github.com>2016-06-17 14:53:09 -0700
commitec444e09f57e4b0e552ba77f1e678993d5ed9587 (patch)
treea5e3c880272486ac598c60ac47d6b4d62af59526 /doc/ci
parent6980489ca8f953fa61a15ae1b2c1035103cea85a (diff)
downloadgitlab-ce-ec444e09f57e4b0e552ba77f1e678993d5ed9587.tar.gz
Add GIT_STRATEGY and GIT_DEPTH
Diffstat (limited to 'doc/ci')
-rw-r--r--doc/ci/yaml/README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 9c98f9c98c6..51c6f814c00 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -814,6 +814,43 @@ job:
- execute this after my script
```
+## Git Strategy
+
+>**Note:**
+Introduced in GitLab 8.9 as an experimental feature
+
+You can set the `GIT_STRATEGY` used for getting recent application code. `clone`
+is slower, but makes sure you have a clean directory before every build. `fetch`
+is faster. If specified, it will override the project settings in the web UI.
+
+```
+variables:
+ GIT_STRATEGY: clone
+```
+
+or
+
+```
+variables:
+ GIT_STRATEGY: fetch
+```
+
+## Shallow cloning
+
+>**Note:**
+Introduced in GitLab 8.9 as an experimental feature
+
+You can specify the depth of fetching and cloning using `GIT_DEPTH`. This allows
+shallow cloning of the repository. The value is passed to `git fetch` and `git
+clone`. If set while cloning, it will imply `--shallow-modules`, which means
+submodules will be cloned with a depth of 1 regardless of the value of
+`GIT_DEPTH`.
+
+```
+variables:
+ GIT_DEPTH: "1"
+```
+
## Hidden jobs
>**Note:**