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

Workspace not cleaned up when using skipDefaultCheckout option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Jenkins 2.121.1
      Blue Ocean 1.7.0
      agent:
      Windows Server 2016
      Remoting 3.15

      I'm using declarative pipeline and have recently noticed that a stage using `skipDefaultCheckout()` option is not cleaning up the workspace on a windows agent. I'm not sure if pipeline is meant to automatically do this but I was expected it to. It would be nice if the declarative pipeline syntax supported specifying if a stage should clean the workspace and if it should be at the beginning or end of the stage.

       

      For the time being I have worked around it by using `DeleteDir()`

       

       

            Unassigned Unassigned
            jonathank Jonathan Kuleff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: