Issue Type: Bug Bug
Assignee: jyrkiput
Components: gerrit, gerrit-trigger, git-client
Created: 10/Apr/14 11:54 AM
Description:

As described in the documentation, Gerrit allows you to start a git job manually by specifying the GERRIT_REFSPEC parameter.
In my setup the value of this parameter is ignored and gerrit checks out the remote HEAD instead of the specified refspec.

I tried to trace down the issue and found out that the Gerrit merge strategy will select the FETCH_HEAD to start the build from.
The problem is however that the git-client not only fetches the $GERRIT_REFSPEC but also fetches an empty refspec, so on the command line, it executes:

git fetch --tags --progress <url of repo> "" $GERRIT_REFSPEC

The empty parameter will be translated on the remote site to the HEAD and this is where the FETCH_HEAD will be put on.

So the build will start from the wrong git version.

Environment: ubuntu 12.04
Project: Jenkins
Priority: Major Major
Reporter: Steven Aerts
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to