Beginner Level Users of Jenkins might face a common svn checkout error time and again like this :-
On seeing the console… you find the following error message – “The process cannot access the file because it is being used by another process.”. As far as my understanding goes this error is caused due to the .svn folder(which is hidden) created during checkout. We need to ensure that this folder is deleted before checkout or we need to ensure that the workspace itself is deleted completely before a fresh checkout. I employ the second option.
For this install a Jenkins plugin named ‘Workspace Cleanup Plugin’.
After installing this plugin go to Configure> Build Enivironment > Check ‘Delete workspace before build starts’ option.
Another thing you have to do is to set SVN to ‘Always checkout a fresh copy’ option
Hence the next time your job starts the workspace will be cleaned, and a fresh svn checkout happens. You will never encounter this error again.
All the best!