Support LFS in templates
Some repos use LFS in the build stage. The templates should support the use of LFS in an easy way.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author Owner
I did a test to add support for repositories that require to fetch files from LFS for the build stage using the reorganized template scheme.
This change introduces the reusable code for using LFS:
And a user could introduce the use of LFS using:
Two pending things:
- current approach overwrites existing
AFTER_SETUP_UPSTREAM_WORKSPACE
- it only considers LFS in upstream, a better hook might be
after_setup_target_workspace
(again pending how not to overwrite)
- current approach overwrites existing
Collapse replies - Developer
There are many hooks available, there are
BEFORE_
andAFTER_
hooks for each step in the industrial-ci's workflow you could try withBEFORE_BUILD_TARGET_WORKSPACE
instead. - Author Owner
Apart from chosing an appropriate hook, what I had in mind is to try if I could append whatever value the hook already had with the new injected LFS-related code. That would make it easier to maintain in the future.
- Developer
I don't think that is possible with GitLab-CI.
- Iñigo Moreno i Caireta created merge request !67 (merged) to address this issue
created merge request !67 (merged) to address this issue
- Iñigo Moreno i Caireta mentioned in merge request !67 (merged)
mentioned in merge request !67 (merged)
- Jon Azpiazu mentioned in commit 9deafef0
mentioned in commit 9deafef0
- Jon Azpiazu closed with merge request !67 (merged)
closed with merge request !67 (merged)