Jenkins Error : SVN Checkout Error || || java.nio.file.FileSystemException

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!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s