request option deleteWorkspacebeforeBuild in pipeline

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: pipeline
    • Environment:
      Jenkins 2.492.1

      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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: