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

Git polling deletes files in workspace if "clean" and "ignore commits in path" are both enabled

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins ver. 1.596,
      git-plugin 2.3.5,
      git-client-plugin 1.16.1

      Sample GIT repo with the following content:

      • ./dir1/file1
      • ./dir1/file3
      • ./dir2/file2
      • ./file1
      • ./file2

      When using the following GIT client configuration

      • Clean before checkout
      • Polling ignores commits in certain paths
        • Included: dir1\/.*
        • Excluded: <empty>
      • Sparse checkout paths (this is optional; issue is triggered without as well)
        • Path: dir1

      the GIT client plugin resets the workspace when polling for changes, i.e. removes any files not part of the repository outside regular job runs. This is rather disturbing if one wants to check the workspace after a build for whatever reason and cannot find files created by the previous build anymore because the periodic polling deleted them in the meantime.

          [JENKINS-28529] Git polling deletes files in workspace if "clean" and "ignore commits in path" are both enabled

          Ronny Schuetz created issue -
          Mark Waite made changes -
          Summary Original: Git polling deletes files in workspace New: Git polling deletes files in workspace if clean and ignore commits in path enabled
          Mark Waite made changes -
          Summary Original: Git polling deletes files in workspace if clean and ignore commits in path enabled New: Git polling deletes files in workspace if clean and ignore commits in path both enabled
          Mark Waite made changes -
          Component/s New: git-plugin [ 15543 ]
          Component/s Original: git-client-plugin [ 17423 ]
          Environment Original: Jenkins ver. 1.596, git-client-plugin 1.16.1 New: Jenkins ver. 1.596,
          git-plugin 2.3.5,
          git-client-plugin 1.16.1
          Mark Waite made changes -
          Summary Original: Git polling deletes files in workspace if clean and ignore commits in path both enabled New: Git polling deletes files in workspace if "clean" and "ignore commits in path" are both enabled
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163371 ] New: JNJira + In-Review [ 181206 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]

            Unassigned Unassigned
            rschuetz Ronny Schuetz
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: