Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude directory during jenkins checkout

I have 20 directories under trunk

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

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?

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.

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

like image 313
Sriwantha Attanayake Avatar asked Apr 25 '12 15:04

Sriwantha Attanayake


1 Answers

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.

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.

like image 168
Darthmail Avatar answered Oct 19 '22 19:10

Darthmail