Hi
Currently we have a workflow
as when a developer commits Jenkins is triggered for that patchset thro Gerrit trigger plugin and reports back +1 verified,
In the meanwhile a reviewer does the code review +2 ,
Once both are done the author then adds the reviewers to the reviewed by field to the commit message and submits it for a merge. (when submitting a patch set the reviewers are not aware of who's going to be reviewing their code, hence they add it at the end of the process before merging)
here's the problem so when he submits his change for merge he edits the commit message like below,
eg:
Bug ID:ABCde12345 Test commit
Change-Id: I347ecgcfaf5g0g267dg008f3gb590b8e9eb6e3d4
Reviewed-By:John Doe, James, etc
its submitted as another patchset, jenkins builds again for that change in commit msg (which is totally unnecessary since there's no code change) and then the change is getting merged.
Questions:
1. Is there a way Gerrit to auto adds the reviewers at the end before merging, so they dont have to edit the commit message and submit again?
2. Also, Is there atleast a way in gerrit trigger plugin to let Jenkins know where we can specify "if there are no diffs builds dont have to be triggered"
Appreciate your help on this.
Thanks,
Cdev