Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
ec444e09
Commit
ec444e09
authored
Jun 16, 2016
by
Mark Pundsack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GIT_STRATEGY and GIT_DEPTH
parent
6980489c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+37
-0
No files found.
doc/ci/yaml/README.md
View file @
ec444e09
...
...
@@ -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:**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment