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

Auto cleanup and sync removes files in ignored folder

      When performing an auto cleanup and sync build, p4-plugin deletes files that are in an ignored folder. This is different behavior from running p4 reconcile at the command line which will not delete files in an ignored folder.

      At //depot/client/.p4ignore:
      /Library/

      Build is set to Auto cleanup and sync, REPLACE, DELETE, Sync with MODTIME

      Logs show:
      P4 Task: cleaning workspace to match have list.
      (p4):cmd:... p4 reconcile -w -f -m /Users/Shared/Jenkins/workspace/km-client-iOS/...
      p4 reconcile -w -f -m /Users/Shared/Jenkins/workspace/km-client-iOS/...

      After this step if I dump the contents of the ${workspace}/client/Library folder, it is empty. However, if I run this same reconcile command line on my local machine, the Library folder is left as-is.

          [JENKINS-38838] Auto cleanup and sync removes files in ignored folder

          Matthew Douglass created issue -
          Matthew Douglass made changes -
          Description Original: When performing an auto cleanup and sync build, p4-plugin deletes files that are in an ignored folder. This is different behavior from running p4 reconcile at the command line which will not delete files in an ignored folder.

          At //depot/client/.p4ignore:
          /Library/

          Build is set to Auto cleanup and sync, REPLACE, DELETE, Sync with MODTIME

          Logs show:
          P4 Task: cleaning workspace to match have list.
          (p4):cmd:... p4 reconcile -w -f -m /Users/Shared/Jenkins/workspace/km-client-iOS/...
          p4 reconcile -w -f -m /Users/Shared/Jenkins/workspace/km-client-iOS/...

          After this step if I dump the contents of the ${workspace}/client/Library folder, it is empty. However, if I run this same reconcile command line on my local machine, the Library folder is left as-is.
          New: When performing an auto cleanup and sync build, p4-plugin deletes files that are in an ignored folder. This is different behavior from running p4 reconcile at the command line which will not delete files in an ignored folder.

          At //depot/client/.p4ignore:
          /Library/

          Build is set to Auto cleanup and sync, REPLACE, DELETE, Sync with MODTIME

          Logs show:
          P4 Task: cleaning workspace to match have list.
          (p4):cmd:... p4 reconcile -w -f -m /Users/Shared/Jenkins/workspace/km-client-iOS/...
          p4 reconcile -w -f -m /Users/Shared/Jenkins/workspace/km-client-iOS/...

          After this step if I dump the contents of the $\{workspace}/client/Library folder, it is empty. However, if I run this same reconcile command line on my local machine, the Library folder is left as-is.

          bump

          Matthew Douglass added a comment - bump
          Karl Wirth made changes -
          Labels New: P4_SUPPORT
          Karl Wirth made changes -
          Assignee New: Karl Wirth [ p4karl ]

          Karl Wirth added a comment -

          Tested on 1.9.3 and ignored folders are correctly ignored by reconcile.

           

          Example .p4ignore:

          ignoreme.txt
          ignoredfolder/

          Karl Wirth added a comment - Tested on 1.9.3 and ignored folders are correctly ignored by reconcile.   Example .p4ignore: ignoreme.txt ignoredfolder/

          Karl Wirth added a comment -

          Looks to be fixed. Please reopen if this is still an issue.

          Karl Wirth added a comment - Looks to be fixed. Please reopen if this is still an issue.
          Karl Wirth made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            p4karl Karl Wirth
            kix_mdouglass Matthew Douglass
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: