As a developer
I would like to have a new option "deleteWorkspacebeforeBuild" for declarative JenkinsFile
so that I have the same function available in my jenkinsfile as the option 'Delete Workspace Before Build' in a manually made job.
In a manually made job I have this option available in the 'environment' section 'Delete workspace before build'
Workaround is available, like skipdefaultcheckout, deleteDir and checkout in a step, but that feels cringe.
Furthermore I would also like to have the workspace intact after a build, so deleteDir afterwards is not an option.
Thanks for investigation this request.