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

"Automatic Cleanup and Sync" does not delete non-versioned folders, only files

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None
    • Jenkins - 2.7.4
      Pipeline - 2.4
      P4-Plugin - 1.4.12

      Hi,

      I have a pipeline which uses the checkout([ $class: 'PerforceScm... syntax.
      Among other things, this build runs "npm install" which creates the node_modules folder under the workspace with all the relevant packages.

      When the checkout is done with Automatic Cleanup and Sync (AutoCleanImpl) - it cleans up all files under node_modules but leaves the folder structure intact. This causes issues when running npm install in the next build.

      As a workaround I have 2 alternatives:
      1. run "npm cache clean" on every build
      2. checkout with "Forced Clean and Sync" (ForceCleanImpl)

      Can AutoCleanImpl also remove non-versioned folders? Or this is intentional?

      Thanks,
      Mor

          [JENKINS-40687] "Automatic Cleanup and Sync" does not delete non-versioned folders, only files

            Unassigned Unassigned
            pyrocks Mor L
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: