Exclude directory during jenkins checkout

10,025

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.

Share:
10,025
Sriwantha Attanayake
Author by

Sriwantha Attanayake

Sriwantha Sri Aravinda Attanayake

Updated on August 11, 2022

Comments

  • Sriwantha Attanayake
    Sriwantha Attanayake over 1 year

    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?