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

Workspaces not getting cleaned upon build completion

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • ws-cleanup-plugin
    • None
    • Windows Jenkins 1.470

    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

          tfields Thomas Fields added a comment -

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

          tfields Thomas Fields added a comment - It's probably worth mentioning that my build jobs are all matrix projects.
          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

          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
          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)?

          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)?
          tfields Thomas Fields added a comment -

          That's correct.

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

          Hi,

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

          Thanks,
          Tom

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

          Has any progress been made on this issue?

          Tom

          tfields Thomas Fields added a comment - Has any progress been made on this issue? Tom

          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

          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
          tfields Thomas Fields added a comment -

          Thanks for the fix. It's working great.

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: