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

Gerrit Trigger: every build has all commits listed in the Changes page

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I configed the Gerrit Trigger plugin on jenkins based on the article https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger.

      On git plugin, I set Refspec to refs/changes/*:refs/changes/* and 'Branches to build' to $GERRIT_REFSPEC.

      The job can be triggered whenever new patch set is created. However, the changes to this build contains all the changes (can show max to 1024 changes in total).

      This issue bothers me a lot because I'm supposed to send email only to the committer instead of sending emails to all the people contributing to that changelog.

      Same issue happened in this url: https://groups.google.com/forum/#!topic/jenkinsci-users/KKITzpqG5_s

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          The mailing list seems to describe a configuration correction. Does that configuration correction also resolve this report?

          Show
          markewaite Mark Waite added a comment - The mailing list seems to describe a configuration correction. Does that configuration correction also resolve this report?
          Hide
          winnerwbx Andy Wang added a comment -

          I did as the mailing list said: set Refspec to $GERRIT_REFSPEC, branches to $GERRIT_BRANCH and it didn't work for me. Then I changed the branch to origin/$GERRIT_BRANCH, it all worked. I guess that the $GERRIT_BRANCH only pass "master" to git plugin, and it need full branch name like origin/master.
          So problem solved but I think the plugin doc do need some correction.

          Show
          winnerwbx Andy Wang added a comment - I did as the mailing list said: set Refspec to $GERRIT_REFSPEC, branches to $GERRIT_BRANCH and it didn't work for me. Then I changed the branch to origin/$GERRIT_BRANCH, it all worked. I guess that the $GERRIT_BRANCH only pass "master" to git plugin, and it need full branch name like origin/master. So problem solved but I think the plugin doc do need some correction.

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              winnerwbx Andy Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: