本文介绍了詹金斯和Git稀疏结账的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Git中有一个大型仓库。如何在Jenkins中创建一个只从项目中检出一个子文件夹的作业?请参阅:Jira issue
I have a large repository in Git. How do I create a job in Jenkins that checks out just one sub-folder from the project?
解决方案
Jenkins Git Plugin support sparse checkouts since git-plugin 2.1.0 (April, 2014). You will need git >= 1.7.0 for this feature. It is under "Additional Behaviors" -> "Sparse Checkout paths."
See: Jira issue JENKINS-21809
这篇关于詹金斯和Git稀疏结账的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!