Child pages
  • Distributed Workspace Clean plugin
Skip to end of metadata
Go to start of metadata

Plugin Information

View Distributed Workspace Clean on the plugin site for more information.

This plugin allows you to cleanup workspaces on unused slaves in the same slavegroup.

Distributed Workspace Clean plugin

Intention of this plugin

This plugin is made to cleanup the same workspace in all, but not the actual used slave

We needed this plugin because we had many jobs and some slaves.
this slaves are packaged to some groups via the labels in the original hudson
because our workspace can contain up to 1GB on data it is absolutely necessary
to delete the not actual workspaces.

For this reason this plugin provides the possibility to delete the workspaces before or after a build.
It uses the standard Hudson mechanics to do this.

Change Log

Version 1.0.5 (Aug 6, 2015)
  • (error) Fix Compatibility with Folder plugin (JENKINS-29682)
  • (error) Fix deletion on master
  • (error) Don't wait for slave to become online/don't try to reconnect slave, if slave is offline
  • (info) Various cleanup/refactoring
  • (info) First release from GitHub
Version 1.0.4 (Jan 7, 2010)
  • Fix NPE while running PrePostClean on a project that can roam
  • Update code for more recent Hudson
Version 1.0.3 (Oct 12, 2009)
  • Fix broken classinformation due to change of from interface to abstract class
  • Fix JENKINS-4630, NPE while running PrePostClean without any slaves
Version 1.0.2
  • Fix for release
Version 1.0.1
  • Initial checkin

4 Comments

  1. How does this work if you have concurrent runs of the same project on different slaves? Is it smart enough to only wipe out the inactive ones?

    1. Unknown User (s.chagnaud)

      After some tests,It seems to be not working with concurrent runs !

      Below error message :
      cat delete on Slave remote file operation failed: c:\Hudson/workspace/... at hudson.remoting.Channel@14f5b52:...
      11:20:16 hudson.util.IOException2: remote file operation failed: c:\Hudson/workspace/... at hudson.remoting.Channel@14f5b52:... on ...

  2. There is a 404 not found for the Subversion source link on this. What link should be here?

    I've also noted that this could have wiped out workspaces on other concurrent runs which caused a little chaos in our build system. We've currently disabled the plugin, pending a good look at its source when we have time to.