Add git lfs support to default build images
I have a project that uses git lfs (https://git-lfs.github.com/) to
track larger binary files. Because of this, a standard git clone
will not pull down all the files I need for a successful build. I
also need to call git lfs pull
, but am having some
trouble getting that installed myself. Ideally we could have
support for this on the base images...I'm currently using the
Visual Studio 2015 image.
My current attempt at supporting this myself...in the Environment install ps script:
(new-object net.webclient).DownloadFile('https://github.com/github/git-lfs/releases/download/v1.0.0/git-lfs-windows-amd64-1.0.0.exe', 'git-lfs-windows-amd64-1.0.0.exe')
msiexec /i git-lfs-windows-amd64-1.0.0.exe /quiet /qn /norestart /log install.log
This does seem to work, but when I call the git lfs
command on the pre-build ps script, it does not recognize the new
command.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 26 Oct, 2015 08:49 PM
The installer is made with NSIS however it doesn't support
/S
(silent) switch, but it should. I'd consider that as a bug.I've added a new issue for this week update: https://github.com/appveyor/ci/issues/468
2 Posted by kyle on 28 Jan, 2016 03:25 PM
Hi,
I've just tried to use git-lfs with the Visual Studio 2015 environment, however the build fails complaining that the command git-lfs does not exist.
Has support been enabled for all environments?
Support Staff 3 Posted by Feodor Fitsner on 28 Jan, 2016 04:19 PM
Should be installed on all environments. What exact command did you use to test it?
-Feodor
4 Posted by kyle on 28 Jan, 2016 04:46 PM
It was just what was executed as part of pulling down the repo.
Also tried running git lfs pull as an init script, but just get an error saying that 'lfs' is not a git command.
I've attached the logs for both scenarios (first one is anonymised).
Support Staff 5 Posted by Feodor Fitsner on 28 Jan, 2016 05:06 PM
Will take a look.
6 Posted by kyle on 01 Feb, 2016 09:23 AM
Until this issue is resolved, I can't merge a feature branch that relies on git LFS.
Have you been able to investigate the issue any further?
Support Staff 7 Posted by Feodor Fitsner on 01 Feb, 2016 02:14 PM
Hi Kyle,
Git LFS has been deployed to default build image.
-Feodor
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.