Commit 9deafef0 authored by Jon Azpiazu's avatar Jon Azpiazu
Browse files

Merge branch '37-support-lfs-in-templates' into 'master'

Resolve "Support LFS in templates"

Closes #37

See merge request !67
parents 5b9e9cc3 98803c56
Pipeline #57132 passed with stage
in 10 seconds
......@@ -28,7 +28,6 @@ The Core pipeline, defined in link:ci-templates/core.yml[], has the following st
* Check files have no trailing whitespace and are `UTF-8` encoded
* Check that `C++` files follow this link:clang-format[]
It is important to note that both templates set the variable `GIT_LFS_SKIP_SMUDGE`, which means that when the repositories are cloned/fetched, the files hosted using Git LFS will not be downloaded. An example on how to explicitely fetch the files from LFS can be found in the[common_config repository].
== Manual Jobs
......@@ -52,3 +51,9 @@ The auto rules also allow for using variables to explicitely activate each job:
== LFS
By default, lfs files are not downloaded. If you need to add LFS, include the link:ci-templates/lfs-pull.yml[] along with anything else:
\ No newline at end of file
- project: tecnalia_robotics-public/gitlab_templates
- ci-templates/auto-rules/kinetic-default.yml
- ci-templates/lfs-pull.yml
.lfs-pull-script: &lfs-pull-script
"find $$current_ws -type f -name .lfsconfig -execdir git lfs pull \\; ;\
find $$current_ws -type f -name .lfsconfig -execdir git lfs ls-files \\; ;"
AFTER_INIT: "bash <(curl -s;\
apt install -qq -y git-lfs; \
git config --global credential.helper store; \
echo https://$ARTIFACT_CI_USER:$ > ~/.git-credentials ;"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment