Note: In situations where there have been more than one build of a
job running concurrently on a single node (i.e. the node has
multiple executors and the project has concurrent builds enabled)
then every build except the first will run on a non-default
workspace (e.g.
.../workspace/ProjectName@2
). This method will not clean these non-default workspaces.
Note: This can be computationally expensive if projects have a huge amount of build history to scan.
This method is best used where enough build history is kept that nodes will have their workspace wiped before that build is forgotten, but not so much history is kept that it becomes a performance problem.Skip this node when cleaning old build workspaces
node property set will be skipped over, as will nodes whose name
matches a pattern in the
Nodes to ignore
field (below).