I have a couple of prototype Gerrit integration builds up and running, with some issues. All of the builds are freestyle projects, in case that matters.
One of the issues is that I do not seem to be able to kick off a build manually because of the way that the sourcecode management has to be configured. I have to use a repo Refspec of $GERRIT_REFSPEC, which is not valid unless the build is triggered by the Gerrit plugin.
For a build-now pushbutton build or a dependent build, how can I set this value to some default that can be overloaded when triggered by Gerrit?