Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Cabieces
otb
Commits
a1aa7cff
Commit
a1aa7cff
authored
6 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Plain Diff
Merge branch '1834-improve-lfs-speed' into 'develop'
Improve Git LFS performances See merge request
orfeotoolbox/otb!430
parents
581cd008
4de8ad1f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-0
20 additions, 0 deletions
.gitlab-ci.yml
with
20 additions
and
0 deletions
.gitlab-ci.yml
+
20
−
0
View file @
a1aa7cff
# WARNING!
# OTB uses Git-LFS to store the (large) tests data.
# Git-LFS is mostly transparent for the user and recent versions
# are able to use Git-LFS quite efficiently.
# But Git fails to manage efficiently numerous LFS data.
# We have to use directly git-lfs wrapping commands to have an
# efficient cloning step.
# Furthermore, Git-LFS and Gitlab sufer a bug preventing usage of
# GIT_STRATEGY=fetch (https://gitlab.com/gitlab-org/gitlab-runner/issues/3318)
variables
:
DOCKER_DRIVER
:
overlay2
GIT_DEPTH
:
"
3"
# Disable automatic checkout to let us fetch LFS before
GIT_CHECKOUT
:
"
false"
# The fetch strategy fails with LFS and GitLab
GIT_STRATEGY
:
"
clone"
before_script
:
# Provision efficiently the local LFS cache before checkout
-
git lfs fetch origin $CI_COMMIT_REF_NAME
# Checkout the expected branch
-
git checkout $CI_COMMIT_REF_NAME
stages
:
-
build
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment