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

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

    Details

    • Similar Issues:

      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

            Hide
            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.

            Show
            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.
            Hide
            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.

            Show
            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.
            Hide
            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 ?

            Show
            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 ?
            Hide
            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.

            Show
            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.
            Hide
            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.

            Show
            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

              • Assignee:
                rsandell rsandell
                Reporter:
                venu1456 venu 1456
              • Votes:
                21 Vote for this issue
                Watchers:
                28 Start watching this issue

                Dates

                • Created:
                  Updated: