request option deleteWorkspacebeforeBuild in pipeline

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Casper Roubos
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: