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

Git path polling ignores do not work in Pipeline jobs

    XMLWordPrintable

Details

    Description

      Multibranch pipeline jobs seem to ignore git path polling rules when attempting to detect indexing changes and schedule builds.

      More specifically:

      • I am using a "Periodically if not otherwise run" build trigger
      • I tested "Git polling ignores commits in certain paths" with the following:

      1) Only including paths that I care about:
      Included:
      that-path-I-care-about/.*
      Excluded:
      (empty)

      2) Including paths I care about and excluding a specific path:
      Included:
      that-path-I-care-about/.*
      Excluded:
      that-path-I-want-to-ignore/.*

      3) Just using excluded paths:
      Included:
      (empty)
      Excluded:
      that-path-I-want-to-ignore/.*

      None of them work as expected. Builds are triggered anytime a change is committed to the repo.

      Attachments

        Issue Links

          Activity

            prestonj Preston Jennings created issue -
            prestonj Preston Jennings made changes -
            Field Original Value New Value
            Description Multibranch pipeline jobs seem to ignore git polling rules when attempting to detect indexing changes and scheduling builds.

            More specifically:
            - I am using a "Periodically if not otherwise run" build trigger
            - I tested "Git polling ignores commits in certain paths" with the following:

            1) Only including paths that I care about:
            Included:
            that-path-I-care-about/.*
            Excluded:
            (empty)

            2) Including paths I care about and excluding a specific path:
            Included:
            that-path-I-care-about/.*
            Excluded:
            that-path-I-want-to-ignore/.*

            3) Just using excluded paths:
            Included:
            (empty)
            Excluded:
            that-path-I-want-to-ignore/.*

            None of them work as expected. Builds are triggered anytime a change is committed to the repo.
            Multibranch pipeline jobs seem to ignore git polling rules when attempting to detect indexing changes and schedule builds.

            More specifically:
            - I am using a "Periodically if not otherwise run" build trigger
            - I tested "Git polling ignores commits in certain paths" with the following:

            1) Only including paths that I care about:
            Included:
            that-path-I-care-about/.*
            Excluded:
            (empty)

            2) Including paths I care about and excluding a specific path:
            Included:
            that-path-I-care-about/.*
            Excluded:
            that-path-I-want-to-ignore/.*

            3) Just using excluded paths:
            Included:
            (empty)
            Excluded:
            that-path-I-want-to-ignore/.*

            None of them work as expected. Builds are triggered anytime a change is committed to the repo.
            prestonj Preston Jennings made changes -
            Summary Git polling ignores do not work in Multibranch Pipeline job Git path polling ignores do not work in Multibranch Pipeline job
            prestonj Preston Jennings made changes -
            Description Multibranch pipeline jobs seem to ignore git polling rules when attempting to detect indexing changes and schedule builds.

            More specifically:
            - I am using a "Periodically if not otherwise run" build trigger
            - I tested "Git polling ignores commits in certain paths" with the following:

            1) Only including paths that I care about:
            Included:
            that-path-I-care-about/.*
            Excluded:
            (empty)

            2) Including paths I care about and excluding a specific path:
            Included:
            that-path-I-care-about/.*
            Excluded:
            that-path-I-want-to-ignore/.*

            3) Just using excluded paths:
            Included:
            (empty)
            Excluded:
            that-path-I-want-to-ignore/.*

            None of them work as expected. Builds are triggered anytime a change is committed to the repo.
            Multibranch pipeline jobs seem to ignore git path polling rules when attempting to detect indexing changes and schedule builds.

            More specifically:
            - I am using a "Periodically if not otherwise run" build trigger
            - I tested "Git polling ignores commits in certain paths" with the following:

            1) Only including paths that I care about:
            Included:
            that-path-I-care-about/.*
            Excluded:
            (empty)

            2) Including paths I care about and excluding a specific path:
            Included:
            that-path-I-care-about/.*
            Excluded:
            that-path-I-want-to-ignore/.*

            3) Just using excluded paths:
            Included:
            (empty)
            Excluded:
            that-path-I-want-to-ignore/.*

            None of them work as expected. Builds are triggered anytime a change is committed to the repo.
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            mcrooney mcrooney made changes -
            Summary Git path polling ignores do not work in Multibranch Pipeline job Git path polling ignores do not work in Pipeline jobs
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 173579 ] JNJira + In-Review [ 185209 ]
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-36195 [ JENKINS-36195 ]
            jglick Jesse Glick made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            mcrooney mcrooney made changes -
            Resolution Duplicate [ 3 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            javor Janusz Jaworski made changes -
            Comment [ Maybe this bug is connected with file https://github.com/jenkinsci/workflow-job-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java: line 547 method @Override public PollingResult poll(TaskListener listener). I didn't find any git extensions and checks that should ignore commits. ]
            stephenconnolly Stephen Connolly made changes -
            Resolution Duplicate [ 3 ]
            Status Reopened [ 4 ] Closed [ 6 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-1409 (Web Link)" [ 18707 ]

            People

              Unassigned Unassigned
              prestonj Preston Jennings
              Votes:
              21 Vote for this issue
              Watchers:
              35 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: