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

Gerrit trigger caused git plugin polling to not ignore commit from certain users

    XMLWordPrintable

Details

    Description

      For our continuos Integration we are using maven-release-plugin. For which we would like to ignore commits from Jenkins user which is incrementing artifact version and doing commit.
      With Polling SCM and using "Polling ignores commit from certain users" to ignore commits by Jenkins user which is not working as expected and going to infinite loop.

      Attachments

        Issue Links

          Activity

            winnerwbx Andy Wang added a comment -

            Mark Waite I tested on a small job without Gerrit-trigger plugin. And the result showed that the polling ignores are well functioning. I tested on all three ignore commit options( by user name, by commit message and by file path), they all worked no matter if the "Force polling using workspace" checked or not.
            But once added Gerrit-trigger plugin, it didn't work. The job triggers on all commits despite the polling ignore settings.

            winnerwbx Andy Wang added a comment - Mark Waite I tested on a small job without Gerrit-trigger plugin. And the result showed that the polling ignores are well functioning. I tested on all three ignore commit options( by user name, by commit message and by file path), they all worked no matter if the "Force polling using workspace" checked or not. But once added Gerrit-trigger plugin, it didn't work. The job triggers on all commits despite the polling ignore settings.
            dvader Darth Vader added a comment -

            I believe this is related to JENKINS-25048. The proposed solution and I believe it makes sense is that the external trigger (web hook) triggers a poll not a build. Like that, all the custom rules for users, included/excluded regions would be honored.

            dvader Darth Vader added a comment - I believe this is related to JENKINS-25048 . The proposed solution and I believe it makes sense is that the external trigger (web hook) triggers a poll not a build. Like that, all the custom rules for users, included/excluded regions would be honored.
            ycorneille Yan Corneille added a comment -

            Is there another way to do such things ? I'm in the exact same situation, trying to ignore Jenkins own commits due to continuous delivery. I wanted to use exclusions in pipelines because that's the way I did it with regular jenkins jobs, but if there is another way to achieve this goal, it's more than welcome.
            I tried to check on GIT_* env variables, but they're not yet accessible.
            Des anyone have a workaround ?

            ycorneille Yan Corneille added a comment - Is there another way to do such things ? I'm in the exact same situation, trying to ignore Jenkins own commits due to continuous delivery. I wanted to use exclusions in pipelines because that's the way I did it with regular jenkins jobs, but if there is another way to achieve this goal, it's more than welcome. I tried to check on GIT_* env variables, but they're not yet accessible. Des anyone have a workaround ?

            I am seeing the same behavior, but I don't have the gerrit-triger plugin installed.

             

            I am attempting to use a post-commit hook to only build on 2 included regions of my repo.

            reverson Robert Everson added a comment - I am seeing the same behavior, but I don't have the gerrit-triger plugin installed.   I am attempting to use a post-commit hook to only build on 2 included regions of my repo.

            We have the same behavior, but I don't have the gerrit-triger plugin installed.

            We use TFS Service Hooks for external SCM polling.

            it12lsp Christian Häussler added a comment - We have the same behavior, but I don't have the gerrit-triger plugin installed. We use TFS Service Hooks for external SCM polling.

            People

              Unassigned Unassigned
              venu1456 venu 1456
              Votes:
              22 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated: