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
c117d7bb
Commit
c117d7bb
authored
Apr 23, 2019
by
Steve Azzopardi
Committed by
Evan Read
Apr 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add doc cross links for large repositories
parent
46bdbc5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
+21
-18
doc/ci/large_repositories/index.md
doc/ci/large_repositories/index.md
+21
-18
No files found.
doc/ci/large_repositories/index.md
View file @
c117d7bb
...
@@ -72,8 +72,9 @@ done by GitLab, requiring you to do them.
...
@@ -72,8 +72,9 @@ done by GitLab, requiring you to do them.
> Introduced in GitLab Runner 11.10.
> Introduced in GitLab Runner 11.10.
`GIT_CLONE_PATH`
allows you to control where you clone your sources.
[
`GIT_CLONE_PATH`
](
../yaml/README.md#custom-build-directories
)
allows you to
This can have implications if you heavily use big repositories with fork workflow.
control where you clone your sources. This can have implications if you
heavily use big repositories with fork workflow.
Fork workflow from GitLab Runner's perspective is stored as a separate repository
Fork workflow from GitLab Runner's perspective is stored as a separate repository
with separate worktree. That means that GitLab Runner cannot optimize the usage
with separate worktree. That means that GitLab Runner cannot optimize the usage
...
@@ -83,29 +84,31 @@ In such cases, ideally you want to make the GitLab Runner executor be used only
...
@@ -83,29 +84,31 @@ In such cases, ideally you want to make the GitLab Runner executor be used only
for the given project and not shared across different projects to make this
for the given project and not shared across different projects to make this
process more efficient.
process more efficient.
The
`GIT_CLONE_PATH`
has to be within the
`$CI_BUILDS_DIR`
. Currently,
The
[
`GIT_CLONE_PATH`
](
../yaml/README.md#custom-build-directories
)
has to be
it is impossible to pick any path from disk.
within the
`$CI_BUILDS_DIR`
. Currently, it is impossible to pick any path
from disk.
## Git clean flags
## Git clean flags
> Introduced in GitLab Runner 11.10.
> Introduced in GitLab Runner 11.10.
`GIT_CLEAN_FLAGS`
allows you to control whether or not you require
[
`GIT_CLEAN_FLAGS`
](
../yaml/README.md#git-clean-flags
)
allows you to control
the
`git clean`
command to be executed for each CI job.
whether or not you require the
`git clean`
command to be executed for each CI
By default, GitLab ensures that you have your worktree on the given SHA,
job.
By default, GitLab ensures that you have your worktree on the given SHA,
and that your repository is clean.
and that your repository is clean.
`GIT_CLEAN_FLAGS`
is disabled when set to
`none`
. On very big repositories, this
[
`GIT_CLEAN_FLAGS`
](
../yaml/README.md#git-clean-flags
)
is disabled when set
might be desired because
`git clean`
is disk I/O intensive. Controlling that
to
`none`
. On very big repositories, this might be desired because
`git
with
`GIT_CLEAN_FLAGS: -ffdx -e .build/`
, for example, allows you to control and
clean`
is disk I/O intensive. Controlling that with
`GIT_CLEAN_FLAGS: -ffdx
disable removal of some directories within the worktree between subsequent runs,
-e .build/`
, for example, allows you to control and disable removal of some
which can speed-up the incremental builds. This has the biggest effect
directories within the worktree between subsequent runs, which can speed-up
if you re-use existing machines, and have an existing worktree that you can re-use
the incremental builds. This has the biggest effect if you re-use existing
for builds.
machines, and have an existing worktree that you can re-use for builds.
For exact parameters accepted by
`GIT_CLEAN_FLAGS`
, see the documentation
For exact parameters accepted by
for
[
git clean
](
https://git-scm.com/docs/git-clean
)
. The
[
`GIT_CLEAN_FLAGS`
](
../yaml/README.md#git-clean-flags
)
, see the documentation
available parameters are dependent on Git version.
for
[
git clean
](
https://git-scm.com/docs/git-clean
)
. The available parameters
are dependent on Git version.
## Fork-based workflow
## Fork-based workflow
...
...
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