Jenkins and Subversion plugin with multiple modules - Avoid deletion
jenkins, jenkins-plugins, svn
Solution
You must set a subdirectory for the checkouts. You can do this per folder in the svn settings, the "Local module directory" field for each.
Problem
I'm using Jenkins v1.558 and Subversion plugin v2.4. In "Source Code Management" configuration page, I choose "Subversion Modules" and add 2 of them: ` - http://11.22.33.44/svn/repository/folderOne - http://11.22.33.44/svn/repository/folderTwo` `Check-out Strategy: Use 'svn update' as much as possible` These 2 folders contain source code: ``` - folderOne: source1.c - folderOne: source2.c ``` When I launch the Job, I can see in the log file that: - Contents of `folderOne` are well downloaded in the workspace I have indicated - Contents of `folderOne` are deleted - Contents of `folderTwo` are well downloaded in the workspace I have indicated Edit: At the end, I expect to have only the contents of these 2 folders in my workspace, not the folders. Expected: ``` - workspace + source1.c + source2.c ``` Not expected: ``` - workspace + folderOne * source1.c + folderTwo * source2.c ``` Current situation: ``` - workspace + source2.c ``` So, do you know if there is a way to avoid this deletion, to tell to Jenkins/Subversion plugin to keep all the files?