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

Workspaces not getting cleaned upon build completion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ws-cleanup-plugin
    • Labels:
      None
    • Environment:
      Windows Jenkins 1.470
    • Similar Issues:

      Description

      Hi there,

      It appears that the workspace cleanup plugin is not actually cleaning up once the build is complete.

      I've got a Jenkins server (v1.470) running with a few build nodes. My build job is dispatched to build node 1, builds without error but then when I check C:\JCI\workspace\job (on the build node) there are files and folder still there.

      Clearly it's not removing the files it should be? Any ideas?

      Regards,
      Tom

        Attachments

          Activity

          Hide
          tfields Thomas Fields added a comment -

          It's probably worth mentioning that my build jobs are all matrix projects.

          Show
          tfields Thomas Fields added a comment - It's probably worth mentioning that my build jobs are all matrix projects.
          Hide
          tfields Thomas Fields added a comment -

          This is still an issue. Any progress? It appears to delete the matrix elements of the job but not the redundant sync folder. See https://issues.jenkins-ci.org/browse/JENKINS-12983

          Show
          tfields Thomas Fields added a comment - This is still an issue. Any progress? It appears to delete the matrix elements of the job but not the redundant sync folder. See https://issues.jenkins-ci.org/browse/JENKINS-12983
          Hide
          vjuranek vjuranek added a comment -

          Hi,
          do I get it right, that matrix sub-job is removed, but on the node is left parent matrix build folder (e.g. with SVN checkout, which does matrix parent)?

          Show
          vjuranek vjuranek added a comment - Hi, do I get it right, that matrix sub-job is removed, but on the node is left parent matrix build folder (e.g. with SVN checkout, which does matrix parent)?
          Hide
          tfields Thomas Fields added a comment -

          That's correct.

          Show
          tfields Thomas Fields added a comment - That's correct.
          Hide
          tfields Thomas Fields added a comment -

          Hi,

          Did you get anywhere with resolving this issue? It's eating my disk space!

          Thanks,
          Tom

          Show
          tfields Thomas Fields added a comment - Hi, Did you get anywhere with resolving this issue? It's eating my disk space! Thanks, Tom
          Hide
          tfields Thomas Fields added a comment -

          Has any progress been made on this issue?

          Tom

          Show
          tfields Thomas Fields added a comment - Has any progress been made on this issue? Tom
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vojtech Juranek
          Path:
          src/main/java/hudson/plugins/ws_cleanup/WsCleanup.java
          src/main/java/hudson/plugins/ws_cleanup/WsCleanupMatrixAggregator.java
          src/main/resources/hudson/plugins/ws_cleanup/WsCleanup/config.jelly
          src/main/webapp/help/cleanupMatrixParent.html
          http://jenkins-ci.org/commit/ws-cleanup-plugin/6c2a11fee489081f2e08b42107c1fbbb8a0942f6
          Log:
          [FIXED JENKINS-14128] Add option to delete matrix parent workspace

          Compare: https://github.com/jenkinsci/ws-cleanup-plugin/compare/d95a49d8f2d9...6c2a11fee489

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: src/main/java/hudson/plugins/ws_cleanup/WsCleanup.java src/main/java/hudson/plugins/ws_cleanup/WsCleanupMatrixAggregator.java src/main/resources/hudson/plugins/ws_cleanup/WsCleanup/config.jelly src/main/webapp/help/cleanupMatrixParent.html http://jenkins-ci.org/commit/ws-cleanup-plugin/6c2a11fee489081f2e08b42107c1fbbb8a0942f6 Log: [FIXED JENKINS-14128] Add option to delete matrix parent workspace Compare: https://github.com/jenkinsci/ws-cleanup-plugin/compare/d95a49d8f2d9...6c2a11fee489
          Hide
          tfields Thomas Fields added a comment -

          Thanks for the fix. It's working great.

          Show
          tfields Thomas Fields added a comment - Thanks for the fix. It's working great.

            People

            • Assignee:
              vjuranek vjuranek
              Reporter:
              tfields Thomas Fields
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: