You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@infra.apache.org by "Robert Newson (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/19 13:28:42 UTC

[jira] [Resolved] (INFRA-4697) Initialize git user.name and user.email on jenkins server

     [ https://issues.apache.org/jira/browse/INFRA-4697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson resolved INFRA-4697.
----------------------------------

    Resolution: Fixed

git-based jenkins jobs can use environment variables (GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL) to configure the git plugin.
                
> Initialize git user.name and user.email on jenkins server
> ---------------------------------------------------------
>
>                 Key: INFRA-4697
>                 URL: https://issues.apache.org/jira/browse/INFRA-4697
>             Project: Infrastructure
>          Issue Type: Task
>      Security Level: public(Regular issues) 
>          Components: Jenkins
>            Reporter: Robert Newson
>
> I'm configuring jenkins at builds.apache.org to build CouchDB but hit a hurdle fairly immediately. I think this is the first attempt to use a git repository as SCM? A snippet of the error below, but it suffices to run the two git config commands on the jenkins server to fix (verified on a local jenkins server with a working git setup).
> Caused by: hudson.plugins.git.GitException: Error performing command: git tag -a -f -m Jenkins Build #3 jenkins-CouchDB-3
> Command "git tag -a -f -m Jenkins Build #3 jenkins-CouchDB-3" returned status code 128: 
> *** Please tell me who you are.
> Run
>   git config --global user.email "you@example.com"
>   git config --global user.name "Your Name"
> to set your account's default identity.
> Omit --global to set the identity only in this repository.
>   git config --global user.email "you@example.com"
>   git config --global user.name "Your Name"
> to set your account's default identity.
> Omit --global to set the identity only in this repository.
> fatal: empty ident  <jenkins@janus.apache.org
> > not allowed
> 	at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771)
> 	... 15 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira