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

workspace inuse even after all builds completed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Jenkins version 2.361.2 running on Debian 11 in private datacenter
      Mainly multibranch pipelines connected to github repos

      We have seen more frequent issues with new workspaces being created with @number even for agents with no parallelisation. When digging into the issue we find that even when an agent is idle there are several workspaces that are allocated/locked.

      A simple script like:
      println it.toComputer()?.workspaceList?.inUse

      lists several builds that are no longer running, connected to github branches that no longer exists.

      With several locked workspaces the disk runs out on our agents and results in failing builds.

      I have found no way to get rid of the allocated workspaces. Disconnecting the agent and removing the workspace on agent disk does not help.

      I haven't yet tried restarting the Jenkins master, this needs to wait until a planned maintenance window.

            Unassigned Unassigned
            okl Ola Eklundh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: