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

git pipeline scm poll workspace doesn't find git repository

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      The git plugin doesn't appear to find the proper workspace when performing SCM polling on a pipeline job. I use the checkout() step and have set SCM polling to 10 minutes. Every 10 minutes, the polling log shows something along these lines:

      Using strategy: Default
      [poll] Last Built Revision: Revision 5f6e2e39083ff256ccc9face14f6358a5c522ee4 (origin/master)
      No Git repository yet, an initial checkout is required

      This line appears in the git plugin code in a section that appears to be the case of "requiresWorkspaceForPolling = true" which is the case when using multiple branches, or when the branch contains wildcards. I haven't yet figured out why it thinks my configuration has multiple branches (it should only have one) but either way the polling via workspace should still work as expected...

      When we go through this path, it appears that the pipeline job doesn't get the correct workspace, as the one that we run polling inside does not have the repository checked out.

            Unassigned Unassigned
            jekeller Jacob Keller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: