Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24344

Discard Old Builds does not remove any old builds on a system with data storage on seperate logical partition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Windows 7 Virtual Machine working as Server with several distributed clients for different build projects

      Dear all,

      we use one Jenkins (1.532.2) with distributed client machines for different build processes. Build processes and report archiving work fine.
      Build reports etc. are stored on the server on a seperate logical partition "D:". This is configured in Jenkins settings (see screenshot attached)

      Problem:

      "Discard Old Builds" (enabled to keep only 5 last builds) does not remove any builds. Disk space is not (yet) an issue, but the issue is major.

      Observation:

      I could not find any log entries in console output or Jenkins log file that had a reference to LogRotator or Discarding any builds.
      However, Jenkins log contains several "ProblemInspector" exceptions of type "IllegalArgumentException" stating "<File> does not reside in <WorkingDir>" (see stack trace below for example).
      I get the same error messages, when trying to use the "Keep build forever" or "Don't keep this build forever" (see screenshot attached).

      Hypothesis:

      Could this issue be related to the method "JenkinsFilesHelper.buildPathRelativeToHudsonRoot" having a problem with the absolute path leading to another logical partition?

      Probably, this issue be related to JENKINS-13593 ?

      Your assistance is greatly appreciated.
      Regards, Peter

      Stack trace (excerpt)

      javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      ...
      Caused by: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !
      at hudson.plugins.scm_sync_configuration.JenkinsFilesHelper.buildPathRelativeToHudsonRoot(JenkinsFilesHelper.java:12)
      at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher.matches(PatternsEntityMatcher.java:25)
      at hudson.plugins.scm_sync_configuration.strategies.AbstractScmSyncStrategy.isSaveableApplicable(AbstractScmSyncStrategy.java:53)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.getStrategyForSaveable(ScmSyncConfigurationPlugin.java:279)

            nkns165 nkns165
            pda Peter Nill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: