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

When deleting the entire workspace, perform it asynchronously

    XMLWordPrintable

Details

    Description

      When deleting the entire workspace, the folder can be renamed/moved (so the next build can create its workspace from scratch) and then deleted asynchronously.

      The duration of builds with very large workspaces could improve significantly, if the builds could finish without waiting for the workspace deletion to finish.

      Attachments

        Activity

          eriklovlie Erik Lovlie added a comment -

          Any updates on this? This would be very useful.

          eriklovlie Erik Lovlie added a comment - Any updates on this? This would be very useful.
          olivergondza Oliver Gondža added a comment - https://github.com/jenkinsci/ws-cleanup-plugin/pull/20

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          src/test/java/hudson/plugins/ws_cleanup/CleanupTest.java
          http://jenkins-ci.org/commit/ws-cleanup-plugin/0af6bfbc2a5eef5c1664d02bc9b450c9f45654e6
          Log:
          JENKINS-20056 Some more tests

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/test/java/hudson/plugins/ws_cleanup/CleanupTest.java http://jenkins-ci.org/commit/ws-cleanup-plugin/0af6bfbc2a5eef5c1664d02bc9b450c9f45654e6 Log: JENKINS-20056 Some more tests

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          src/main/java/hudson/plugins/ws_cleanup/Cleanup.java
          src/main/java/hudson/plugins/ws_cleanup/PreBuildCleanup.java
          src/main/java/hudson/plugins/ws_cleanup/RemoteCleaner.java
          src/main/java/hudson/plugins/ws_cleanup/Wipeout.java
          src/main/java/hudson/plugins/ws_cleanup/WsCleanup.java
          src/test/java/hudson/plugins/ws_cleanup/CleanupTest.java
          http://jenkins-ci.org/commit/ws-cleanup-plugin/8e31d6a90fa0310ab18ab1384ac4fe142fa65c4d
          Log:
          [FIXED JENKINS-20056] Delete workspace asynchronously

          Compare: https://github.com/jenkinsci/ws-cleanup-plugin/compare/784d5afb95eb...8e31d6a90fa0

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/main/java/hudson/plugins/ws_cleanup/Cleanup.java src/main/java/hudson/plugins/ws_cleanup/PreBuildCleanup.java src/main/java/hudson/plugins/ws_cleanup/RemoteCleaner.java src/main/java/hudson/plugins/ws_cleanup/Wipeout.java src/main/java/hudson/plugins/ws_cleanup/WsCleanup.java src/test/java/hudson/plugins/ws_cleanup/CleanupTest.java http://jenkins-ci.org/commit/ws-cleanup-plugin/8e31d6a90fa0310ab18ab1384ac4fe142fa65c4d Log: [FIXED JENKINS-20056] Delete workspace asynchronously Compare: https://github.com/jenkinsci/ws-cleanup-plugin/compare/784d5afb95eb...8e31d6a90fa0

          People

            olivergondza Oliver Gondža
            danielbeck Daniel Beck
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: