Search code examples
jenkins

Deleting Jenkins jobs through GUI does not delete their workspaces in slaves


I recently deleted 2 job from Jenkins (via GUI). When I log into slaves afterwards I still see workspace of those 2 jobs lying around. Is this behavior normal?

Notes:

  • Jenkins master and slaves are all running on Windows environment.
  • Master runs on Windows Server 2003 and slaves run on Windows Server 2008 R2.
  • Jenkins version is 1.509.2

Regards, Benil


Solution

  • Unfortunately it is: https://groups.google.com/forum/#!topic/jenkinsci-users/SiZ3DL-UJ-8

    Workspaces found on agents are not deleted because this is a non-trivial problem (it would mean that jobs would need to record every agent the job has ever been executed on and it would also have to take into account agent that are offline, for thorough solution).