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

newContainerPerStage does not provide a clean container

XMLWordPrintable

      When using a declarative pipeline with the option "newContainerPerStage()" (see below), the contents of the workspace get copied to further stages even though the documentation states that this can be used to "ensure that each of your stages run in a fresh container of the same image". __ 

      A more sensible approach would be to not copy things between containers. For now, we are currently using "deleteDir()" at the end of every stage as a workaround, which makes it impossible to debug if something goes wrong.

            abayer Andrew Bayer
            apuente Albert Puente
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: