Hi guys, 

i'm actually experiencing a strange problem. We have a git repo built on a 
TFS server, the checkout works without problems but we did a git polling 
procedure to automatically check for new tags.

When we push the tag we got

> git config --local credential.helper store 
--file=/tmp/git2674246502934019511.credentials # timeout=10

Setting http proxy: zrh-srv-b-cfm10.beta.local:3128

 > git -c core.askpass=true fetch --tags --progress 
http://server/tfs/frontendcomponents/_git/static-server 
+refs/tags/*:refs/remotes/origin/tags/*

 > git config --local --remove-section credential # timeout=10

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException: Failed to fetch from 
http://server/tfs/frontendcomponents/_git/static-server

at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)

at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983)

at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)

at hudson.scm.SCM.checkout(SCM.java:488)

at hudson.model.AbstractProject.checkout(AbstractProject.java:1254)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)

at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)

at hudson.model.Run.execute(Run.java:1732)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:234)

Caused by: hudson.plugins.git.GitException: Command "git -c 
core.askpass=true fetch --tags --progress 
http://server/tfs/frontendcomponents/_git/static-server 
+refs/tags/*:refs/remotes/origin/tags/*" returned status code 128:

stdout: 

stderr: remote: Microsoft (R) Visual Studio (R) Team Foundation Server[K

error: no such remote ref refs/tags/v1.1.19


at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379)

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324)

at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733)

... 11 more

ERROR: Error fetching remote repo 'origin'

Finished: FAILURE


but if we retrigger the job again it will work. So to be super clear the 
command always fails the first time but it succeed at the second time.

i also tried to update git (current is 1.8 on the jenkins server) to newer 
version but with 2.4 we got a "401 remote hangs up unexpectedly" error that 
is kind of weird.

the issue is sometimes reproducible from the server command line but e.g. 
from my mac the issue is not reproducible (git version 2.3)

Any idea?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/6ef62adc-2d1c-4b15-a566-43ea398fad54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to