Parameterization on cleanWs

I have made a Jenkins project where I have multiple versions to build, I am using the “Delete workspace before build starts” functionality in which I would like to use the String Parameter ‘VERSIE’ to clean up only the workspace folder associated with this parameter value.

I have added an image to this topic illustrating what I am doing now, however this does not work.

Help would be appreciated, thanks in advance

I think it is not possible. The plugin doesn’t support to replace parameter values at this place.
Look into using a pipeline job for what you’re doing. There it is straightforward to delete a directory based on a parameter

1 Like