timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-47626] I cannot delete builds of some Jobs, if the builds are in another device than Jenkins home. #9442

Open timja opened 6 years ago

timja commented 6 years ago

The Builds are in separate directory in another Device, linked with mklink.

 In some Jobs I can’t delete the Builds with the following IOException.

Entfernen des Builds fehlgeschlagen (Unable to delete the Build)

 java.io.IOException: C:\jenkins_jobs\Container For Test Reference Firmwares\builds\13617 is in use

       at hudson.model.Run.delete(Run.java:1518)

       at hudson.model.Run.doDoDelete(Run.java:2202)

       …..

 

I can’t delete the directory via Windows Explorer too, then the build log file is locked by Java (Jenkins).

 

I need help.


Originally reported by menges_ghebre, imported from: I cannot delete builds of some Jobs, if the builds are in another device than Jenkins home.
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 6 years ago

danielbeck:

Does this issue also occur when you're not manually messing around in JENKINS_HOME? E.g. using the 'builds dir' option to store builds outside JENKINS_HOME?

timja commented 6 years ago

menges_ghebre:

Thank you Daniel for your question.

I use allready the "builds dir" option as you can see it in the screenshots. The first directly without link. And the second one with link (privious configuration).

Regards