查看VSTF构建中的git-lfs文件 [英] Check out git-lfs files on VSTF build

查看:211
本文介绍了查看VSTF构建中的git-lfs文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个托管在VSTS上的存储库,包含一个通过git-lfs存储的文件。如果我只是让VSTS构建版本库,它只会下载包含文件ID的git-lfs元数据文件。



以下是VSTS获取源代码的输出:

 同步存储库:MyRepo(Git)
检出c84ef2f2bbad4fa3dc70dbd4100534390b9c8f18到d:\\\\\\\\\
检出分支refs / heads / develop for repository MyRepo at commit c84ef2f2bbad4fa3dc70dbd4100534390b9c8f18

$ p
$ b $ p
$ b

编辑:我假设我需要在VSTS签出源代码后手动调用 git lfs fetch 。但是,在这种情况下,我该如何处理身份验证(这是VSTS所要求的)?解析方案

该进程已经被更新了( 2017年3月)。这次您需要编辑构建定义的获取源部分。启用右上角的高级设置选项,并勾选从LFS签出文件。




I've a repository hosted on VSTS, containig a file stored through git-lfs. If I just let VSTS build checkout the repository it just downloads the git-lfs metadata file containing the ID of the file.

Here's the output how VSTS gets its source:

Syncing repository: MyRepo (Git)
Checking out c84ef2f2bbad4fa3dc70dbd4100534390b9c8f18 to d:\work\73\s
Checked out branch refs/heads/develop for repository MyRepo at commit c84ef2f2bbad4fa3dc70dbd4100534390b9c8f18

What do I need to do to checkout the real file?

Edit: I assume I need to manually call git lfs fetch after VSTS checked out the source. But how can I handle authentication (which is required by VSTS) in this case?

解决方案

The process has been updated yet again (March 2017). This time you need to edit the "Get Sources" part of your build definition. Enable the "Advanced Settings" option on the top right and check the option to "Checkout files from LFS".

这篇关于查看VSTF构建中的git-lfs文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆