Great question. It needs the git user information because the Jenkins Git
plugin requires it in order to function. If you don't put a username and
email, it will give an error. I assume this is because they are applying a
tag. I am not sure why this is or if it's needed. If not, I could try to
figure out how to prevent it from doing this.

Cloning repository git://github.com/rightscale-cookbooks/marker.git
git --version
git version 1.7.9.5
Fetching upstream changes from origin
Commencing build of Revision a711ee866bf0a0569bdf787e39e4c7fdfca49821
(origin/master)
Checking out Revision a711ee866bf0a0569bdf787e39e4c7fdfca49821 (origin/master)
FATAL: Could not apply tag
jenkins-marker-1hudson.plugins.git.GitException
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
Could not apply tag jenkins-marker-1
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.tag(CliGitAPIImpl.java:777)
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.tag&entity=method>
	at hudson.plugins.git.GitAPI.tag(GitAPI.java:217)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitAPI.tag&entity=method>
	at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1254)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$4.invoke&entity=method>
	at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1211)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM$4.invoke&entity=method>
	at hudson.FilePath.act(FilePath.java:916)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
	at hudson.FilePath.act(FilePath.java:889)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&entity=method>
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1211)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:657)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
<http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
	at hudson.model.Run.execute(Run.java:1665)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
	at hudson.model.ResourceController.execute(ResourceController.java:88)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
	at hudson.model.Executor.run(Executor.java:246)
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: hudson.plugins.git.GitException: Command "git tag -a -f -m
Jenkins Build #1 jenkins-marker-1" returned status code 128:
stdout:
stderr:
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"



On Tue, Oct 8, 2013 at 3:36 PM, Douglas Thrift <notifications@github.com>wrote:

> In Vagrantfile:
>
> >          :jenkins => {
> >            :username => 'qa',
> >            :password => 'secret11',
> >            :user_full_name => 'White QA',
> >            :user_email => 'david.vo@rightscale.com'
> > +        },
> > +        :"rs-cookbooks-ci" => {
> > +          :jenkins => {
> > +            :jobs => {
> > +              :marker => {
> > +                :git_repo => 'git://github.com/rightscale-cookbooks/marker.git',
> > +                :git_branch => 'master'
> > +              }
> > +            },
> > +            :git_setup => {
> > +              :git_config => "/var/lib/jenkins/hudson.
> plugins.git.GitSCM.xml",
> > +              :git_username => "david-vo",
> > +              :git_email => "david.vo@rightscale.com"
>
> What is the purpose of these fields in the Jenkins configuration? It seems
> strange that it needs a user as it shouldn't be committing any code and it
> will be checking out public code.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rightscale-cookbooks/rs-cookbooks-ci/pull/7/files#r6842639>
> .
>