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

newContainerPerStage does not provide a clean container

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          So we're not actually copying anything, but we are mounting the workspace from the parent agent into each container. That's normal behavior for Docker in Pipeline.

          Show
          abayer Andrew Bayer added a comment - So we're not actually copying anything, but we are mounting the workspace from the parent agent into each container. That's normal behavior for Docker in Pipeline.
          Hide
          bitwiseman Liam Newman added a comment -

          Bulk closing resolved issues.

          Show
          bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

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

              Dates

              Created:
              Updated:
              Resolved: