Details
-
Improvement
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
as found here:
https://bugs.launchpad.net/openstack-ci/+bug/929723
and
http://code.google.com/p/gerrit/issues/detail?id=2785
The changeMerged event provides the merged patchset information of a review/change that was merged to its destination branch.
Can this event be extended, or a new event created to include the SHA of the merge commit that was written/exists on the destination branch so that an event listener, like the Jenkins Gerrit Trigger Plugin, could fetch the specified branch and rewind to the specific SHA for a per-review-on-the-branch build trigger?
The refUpdated event has essentially a rev-list of individual commits with no indication of which were added as a result of review merge
I have a patch for the gerrit-trigger plugin to implement support for this feature. Recent versions of Gerrit supply a 'newRev' field as part of the change-merged event, and I have implemented parsing of this field to create a build-time environment variable named GERRIT_MERGED_REVISION.
Jenkins can then use this variable to build the merged code, rather than the individual patchset that was submitted.
My question is: How do I go about submitting my patch back to the plugin?