Key: |
QB-1517
|
Type: |
New Feature
|
Status: |
Resolved
|
Resolution: |
Fixed
|
Priority: |
Major
|
Assignee: |
Robin Shen
|
Reporter: |
Brad Hilton
|
Votes: |
1
|
Watchers: |
1
|
If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
Created: 14/Jan/13 08:07 PM
Updated: 21/Dec/14 01:13 PM
|
|
Component/s: |
None
|
Affects Version/s: |
5.0.5
|
Fix Version/s: |
6.0.0
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
Integration with gerrit, the code review tool for git, would be much easier with a plugin that polled using gerrit's ssh-based api. Could you consider adding support for this tool with a repository plugin and perhaps a new step type that votes a gerrit patch up or down?
|
Description
|
Integration with gerrit, the code review tool for git, would be much easier with a plugin that polled using gerrit's ssh-based api. Could you consider adding support for this tool with a repository plugin and perhaps a new step type that votes a gerrit patch up or down? |
Show » |
|
For example the 1st submitted patch for changeset #5 has refspec (not sure of how to determine the format but I believe it's documented, at least in the API docs).
refs/changes/05/5/1
The Gerrit web front-end displays 4 different commands to get the change set
git fetch http://gerrit.example.com:8080/tycho-template refs/changes/05/5/1 && git checkout FETCH_HEAD
git fetch http://gerrit.example.com:8080/tycho-template refs/changes/05/5/1 && git cherry-pick FETCH_HEAD
git fetch http://gerrit.example.com:8080/tycho-template refs/changes/05/5/1 && git format-patch -1 --stdout FETCH_HEAD
git pull http://gerrit.example.com:8080/tycho-template refs/changes/05/5/1
So I assume that the API provides all the same relevant details. The Jenkins plugin seems to run these commands
> /opt/git-1.9.1/bin/git rev-parse --is-inside-work-tree
> /opt/git-1.9.1/bin/git config remote.origin.url http://gerrit.example.com:8080/tycho-template/
> /opt/git-1.9.1/bin/git --version
> /opt/git-1.9.1/bin/git config --local credential.helper store --file=/tmp/git7718945787932401579.credentials
> /opt/git-1.9.1/bin/git fetch --tags --progress http://gerrit.example.com:8080/tycho-template/ refs/changes/05/5/1
> /opt/git-1.9.1/bin/git config --local --remove-section credential
> /opt/git-1.9.1/bin/git rev-parse 75da4d2db0842c3cf96f1df4d0b0914ccebba54e^{commit}
> /opt/git-1.9.1/bin/git config core.sparsecheckout
> /opt/git-1.9.1/bin/git checkout -f 75da4d2db0842c3cf96f1df4d0b0914ccebba54e
> /opt/git-1.9.1/bin/git rev-parse FETCH_HEAD^{commit}
> /opt/git-1.9.1/bin/git rev-list b8032e2e37c1ed80f84eefbb6df4775bcf9f18d7