On Thu, Aug 9, 2012 at 11:59 AM, huodian007 <
jialin....@gmail.com> wrote:
> Hi Shawn,
>
> I am Jialin from Marvell, working on android development. I want to know if
> there is any interface in gerrit to update DB.
>
>
>
> The story is we have built up an auto-build system for android, and as you
> know, developer’s environment is usually not clean, we need to ensure the
> patch can be built successfully in a clean environment before merge, We want
> to create process below.
>
> 1. Create account “build_robot” in gerrit
>
> 2. User submit patch to gerrit
>
> 3. User trigger auto-build with gerrit patch info (like change id, …)
>
> 4. Auto build system fetch patch from gerrit, apply patch, and build
>
> 5. Audo build system add review comment by using account
> “build_robot”, then all the human reviewers can see the auto-build result.
>
>
>
> Base on our investigation, we found we can write db table
> PATCH_SET_APPROVALS & CHANGE_MESSAGES by using cmd below:
>
> ssh -p 29418 chenjl @
shgit.marvell.com gerrit gsql --format PRETTY -c
> \"insert into PATCH_SET_APPROVALS …"
>
>
>
> however, we think this way is not good, so we want to know if there is http
> request (like below) or other local interface.
Use the "review" command. To see the available options:
ssh -p 29418 chenjl @
shgit.marvell.com gerrit review --help
example:
ssh -p 29418 chenjl @
shgit.marvell.com gerrit review <commit-id> --verified 1
>
>
>
>
http://shgit.marvell.com/r/gerrit/rpc/ChangeDetailService
>
> changeDetails & publishComments
>
> --
> To unsubscribe, email
repo-discuss...@googlegroups.com
> More info at
http://groups.google.com/group/repo-discuss?hl=en