newContainerPerStage does not provide a clean container

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

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.

            Assignee:
            Andrew Bayer
            Reporter:
            Albert Puente
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: