詹金斯结帐过程中排除目录 [英] Exclude directory during jenkins checkout

查看:167
本文介绍了詹金斯结帐过程中排除目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在行李箱20的目录

/trunk/a1
/trunk/a2
/trun/a3
..
..
/trunk/a20

如何排除(不包括)一些(詹金斯在结帐时任意目录。
例如,我想将所有树干下的目录除 /主干/ A3 / B1
如何做到这一点?

How to exclude (not include) some (arbitrary directories during Jenkins checkout. For example, I want to have all the directories under trunk except /trunk/a3/b1 How to do this?

我已经找到了 SVN签出忽略文件夹一个答案,但,这是不可能詹金斯下。需要一个更简单的解决方案,我不知道下树干目录的数量只是一个我想排除。

I already found an answer in SVN checkout ignore folder but this is not possible under Jenkins. Need a much simpler solution where I don't know the number of directories under trunk except the one I want to exclude.

另外如何添加自定义的svn checkout.Let说,我想执行的svn命令行工具进行结帐?

Also how to add a custom svn checkout.Let's say I want to execute svn command line tool to do the checkout?

推荐答案

我知道这是多晚,但也许这可能是有用的:
https://issues.jenkins-ci.org/browse/JENKINS-25273

I know that's much to late, but maybe this can be useful: https://issues.jenkins-ci.org/browse/JENKINS-25273

要点:
此版本包含快速和肮脏的修复!在我们的测试中,它是
稳定,没有错误,但避免问题之前保存的环境詹金斯
测试它。

Important: This version contains quick and dirty fixes! In our tests it was stable without errors but to avoid problems save the Jenkins environment before testing it.

安装:
只要删除颠覆文件夹及文件在你的詹金斯 - 插件
文件夹,并从票subversion.hpi文件替换它们。
你也必须创建一个空文件在你的插件文件夹中名为subversion.hpi.pi​​nned
提供一种新的插件不会通过原来被覆盖。

Install: Just delete the subversion folder and files in your Jenkins - plugin folder and replace them with the subversion.hpi file from the ticket. You have to create also an empty file named subversion.hpi.pinned in your plugin folder to provide that the new plugin wont be overwritten by the original one.

这篇关于詹金斯结帐过程中排除目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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