Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75354

request option deleteWorkspacebeforeBuild in pipeline

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • 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.

            Unassigned Unassigned
            c_roubos Casper Roubos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: