Jenkins Git Plugin - Merge Commits causing Incorrect Polling Regions

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When Pull Requests are merged in Bitbucket stash, post commit hook of stash is triggering the jenkins jobs. We have multiple jobs for each service and have configured "Polling igores commits in certain paths" with "Included Regions" and "Excluded Regions".

      When a merge commit is made to Project A, both Project A and Project B jobs are getting triggered in Jenkins. But expected should be only to trigger Project A Job.

      Project A Job is having below settings:
      Included Regions: A/.*
      Exclude Regions: B/.*

      Project B Job is having below settings:
      Included Regions: B/.*
      Exclude Regions: A/.*

      And with Poll SCM enabled and without any Schedule.

      On further analysis, we found there is an unresolved bug in Jenkins Git plugin not supporting merge commits -
      https://issues.jenkins-ci.org/browse/JENKINS-32386
      https://issues.jenkins-ci.org/browse/JENKINS-20389

      We had Git plugin version 3.5.1 installed originally and tried with latest version 3.6.4 as well but no luck.

      In JENKINS-20389 ticket, there is a first comment where an user has mentioned "I'm having the exact same issue in the 2.0 git plugin. I have to downgrade to 1.4.0 because of this bug."

      So we tried to install this 1.4.0 plugin as well but this has some features missing like Credentials options, Git Parameter options.. So Jenkins was not able to connect to our GIT respository. So unfortunately we couldn't check with this plugin version.

      Now, we are stuck with this issue and need help to tackle this. Any other workaround is greately appreciated. Thanks!

            Assignee:
            Unassigned
            Reporter:
            Gopikrishna Gopalakrishnan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: