git - Jenkins 和 Git 稀疏 checkout

标签 git jenkins sparse-checkout

我在 Git 中有一个大型存储库。我如何在 Jenkins 中创建一项作业,仅从项目中 checkout 一个子文件夹?

最佳答案

Jenkins Git Plugin自 git-plugin 2.1.0(2014 年 4 月)起支持稀疏 checkout 。您将需要 git >= 1.7.0 才能使用此功能。它位于“附加行为”->“稀疏 checkout 路径”下。

screenshot

参见:Jira 问题 JENKINS-21809

关于git - Jenkins 和 Git 稀疏 checkout ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10791472/

相关文章:

没有前导目录的 Git 稀疏 checkout

git - EC2 无法通过 SSH 连接到 github

c# - 为 .NET 解决方案设置 Git 存储库

git - Git 存储库是否可以并发操作?

git - 配置 Jenkins 以使用 Git Bitbucket 存储库的身份验证错误

jenkins - 在根项目 'assembleDebug'中找不到任务 'my-project'

git - 将文件的稀疏 Git checkout 到父目录中

linux - git sparse-checkout忽略特定的文件类型

git - 根据用例正确设置 git autocrlf

jenkins - 使用 MSBuild 在 Jenkins 中进行 AssemblyInfo.cs 版本控制