- Create a new job, adding your Git repository. Change the Refspec field to reference
+refs/heads/*:refs/remotes/origin/*. Also, make sure you have chosen the "Gerrit-Plugin" choosing strategy, NOT "Gerrit" as in the image below (Choosing strategy was moved from Git-plugin to Gerrit-plugin and the name haed to be changed).
- Add your build steps as per usual
- Check the "Gerrit Integration" checkbox in the Post-build Actions section.
- Once you're certain your job is configured correctly, visit Gerrit and grant the "hudson" account's group (i.e. "Bots") "+1 Verified" access to all projects, so it can annotate the changes with +1 or -1.
- Moved buildchooser from git-pluginPotential fix , use "Gerrit-Plugin" choosing strategy from now on.
- Fix for issue when using Cygwin+Git.