In my setup I want to combine a local git repository with gerrit as code review tool and Jenkins for automatic reviewing purposes. Git and Gerrit are working properly but Jenkins is making some trouble.
What is working so far: I make a commit which appears for review in Gerrit. Jenkins gets triggered to build the affected project with the new changes.
At this point something goes wrong and Jenkins build fails.
Screenshot of the Console Output
Settings of the Jenkins-Project:
The goal is that Jenkins checks out the current commit (with new changes), review it and if the changes are merged to the master it should update its own workspace.
Any ideas what went wrong?
If you want to build the patchset that was just pushed to Gerrit you must set Jenkins like the in the following example: