Project

General

Profile

Could I presumptuous consult a "Updating Redmine issue statuses from Gerrit" problem?

Added by Sherry Lin over 7 years ago

Dear All,

Below are my Gerrit and Redmine version information.
Redmine version is 3.3.0 (OS version is Ubuntu 16.04)
Gerrit version is 2.11.3 (OS version is Windows 2008 server)

When I trigger git comment “git push origin HEAD:refs/for/TEST1”, it just send below information to Gerrit server.

python "C:\Bitnami\redmine-3.0.3-0\gerrit\review_site\hooks\patchset_created.bat" --change I9cde6eb5bb89cb6e6856e266b302e3f7f18e9cc2 --is-draft false --kind REWORK --change-url http://XXXXX.com:1001/7428 --change-owner "sherry.lin ()" --project MP1234/alps/abi --branch TEST1 --uploader "sherry.lin ()" --commit 7078c7df5b6465110b65b071c9eed60b9a7903dd --patchset 1

Those information doesn’t have commit message, so Redmine always can’t get #${redmine-issue-id} and update the issue.

What should I do let it can send commit message when I trigger git comment to Gerrit?

PS1. Attachment is my patchset_created.bat on Gerrit server.
PS2. I refer https://github.com/tru/redmine-gerrit-scripts this link to integrate Gerrit and Redmine and modify my batch file.

Many thanks and hope to listen your reply.
Sherry Lin