jenkins - git publisher error -
git publisher in jenkins keeps failing , says "please tell me are". i've tried running git config --global user.name , user.email dit not help
14:25:36 > git tag -l jenkins-jobname1 # timeout=10 14:25:36 > git tag -a -f -m jenkins build #101 jenkins-jobname-success # timeout=10 14:25:36 error: failed push merge origin repository 14:25:36 hudson.plugins.git.gitexception: not apply tag jenkins-jobname-success 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.tag(cligitapiimpl.java:1373) 14:25:36 @ hudson.plugins.git.gitapi.tag(gitapi.java:274) 14:25:36 @ hudson.plugins.git.gitpublisher.perform(gitpublisher.java:215) 14:25:36 @ hudson.tasks.buildstepmonitor$3.perform(buildstepmonitor.java:45) 14:25:36 @ hudson.model.abstractbuild$abstractbuildexecution.perform(abstractbuild.java:779) 14:25:36 @ hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps(abstractbuild.java:720) 14:25:36 @ hudson.model.build$buildexecution.post2(build.java:186) 14:25:36 @ hudson.model.abstractbuild$abstractbuildexecution.post(abstractbuild.java:665) 14:25:36 @ hudson.model.run.execute(run.java:1753) 14:25:36 @ hudson.model.freestylebuild.run(freestylebuild.java:43) 14:25:36 @ hudson.model.resourcecontroller.execute(resourcecontroller.java:98) 14:25:36 @ hudson.model.executor.run(executor.java:405) 14:25:36 caused by: hudson.plugins.git.gitexception: command "git tag -a -f -m jenkins build #101 jenkins--jobname-success" returned status code 128: 14:25:36 stdout: 14:25:36 stderr: 14:25:36 *** please tell me are. 14:25:36 14:25:36 run 14:25:36 14:25:36 git config --global user.email "you@example.com" 14:25:36 git config --global user.name "your name" 14:25:36 14:25:36 set account's default identity. 14:25:36 omit --global set identity in repository. 14:25:36 14:25:36 fatal: empty ident name (for <jenkins@jenkins01.(none)>) not allowed 14:25:36 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommandin(cligitapiimpl.java:1799) 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommandin(cligitapiimpl.java:1772) 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommandin(cligitapiimpl.java:1768) 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommand(cligitapiimpl.java:1415) 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommand(cligitapiimpl.java:1427) 14:25:36 @ org.jenkinsci.plugins.gitclient.cligitapiimpl.tag(cligitapiimpl.java:1371) 14:25:36 ... 11 more 14:25:36 build step 'git publisher' marked build failure
any idea how can fix it?
if it's using jenkins user:
sudo -u jenkins git config --global user.email "you@example.com" sudo -u jenkins git config --global user.name "your name"
this create .gitconfig
in user's home.
Comments
Post a Comment