Alla Sasikanth
Alla Sasikanth

Reputation: 563

Jenkins Pathignore Plugin installation failing

I have Jenkins installed on a Windows Server.

I am trying to add the plugin Pathignore Plugin which has a dependency on Ruby-runtime.

When I tried to add Ruby-runtime plugin, I've got the following error:

Caused by: java.nio.file.FileSystemException: C:\Program Files (x86)\Jenkins\plugins\ruby-runtime\WEB-INF\lib\classes.jar: The process cannot access the file because it is being used by another process.

Upvotes: 3

Views: 10189

Answers (1)

Rich
Rich

Reputation: 528

It appears to be caused by a long file name bug, I had to relocate our Jenkins install to the root of the drive, it then "just works"

  • Stop the Jenkins Service
  • Move the Jenkins folder to the drive root (i.e. C:\Program Files (x86)\Jenkins to C:\Jenkins
  • Edit the location of the service in the system registry Registry location
  • Restart Jenkins

see bug report here for more information

Upvotes: 10

Related Questions