Project

General

Profile

Bug #9992

git configuration issues in Jenkins slaves

Added by Alfredo Deza over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Sandon Van Ness
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Started by upstream project "python-bindings" build number 10
originally caused by:
 Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on gitbuilder-cdep-deb-squeeze-amd64-basic (x86_64 squeeze amd64) in workspace /home/jenkins-build/build/workspace/python-bindings/Arch/x86_64/Dist/squeeze
Checkout:squeeze / /home/jenkins-build/build/workspace/python-bindings/Arch/x86_64/Dist/squeeze - hudson.remoting.Channel@6762f5a3:gitbuilder-cdep-deb-squeeze-amd64-basic
Using strategy: Default
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository https://github.com/ceph/ceph.git
git --version
git version 1.7.2.5
Fetching upstream changes from origin
Commencing build of Revision effb8c24842f3d78c78f577fb83e7ac531f9a4fb (origin/wip-5900)
Checking out Revision effb8c24842f3d78c78f577fb83e7ac531f9a4fb (origin/wip-5900)
FATAL: Could not apply tag jenkins-Arch=x86_64,Dist=squeeze-10
hudson.plugins.git.GitException: Could not apply tag jenkins-Arch=x86_64,Dist=squeeze-10
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.tag(CliGitAPIImpl.java:721)
    at hudson.plugins.git.GitAPI.tag(GitAPI.java:211)
    at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1254)
    at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1211)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2462)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:328)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)
Caused by: hudson.plugins.git.GitException: Command "git tag -a -f -m Jenkins Build #10 jenkins-Arch=x86_64,Dist=squeeze-10" 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" 

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident  <jenkins-build@gitbuilder-cdep-deb-squeeze-amd64-basic.front.sepia.ceph.com> not allowed

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:790)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:756)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:766)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.tag(CliGitAPIImpl.java:719)
    ... 13 more

I would do it manually but not sure if we have a dedicated user we are ok using

History

#1 Updated by Alfredo Deza over 9 years ago

It looks like it is this on the Jenkins server itself:

ubuntu@jenkins:~$ cat ~/.gitconfig
[user]
    email = jenkins@inktank.com
    name = Jenkins
ubuntu@jenkins:~$

#2 Updated by Alfredo Deza over 9 years ago

  • Status changed from New to Resolved

It looks like it was just one host that needed this, copied the settings from ~/.gitconfig on the Jenkins server.

Also available in: Atom PDF