Re: Jenkins timing out to connect to Bitbucket when building project
The full error seems to be related to not able to verify GIT_SSH credentials even though I receive authentication succeeded. C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10 using GIT_SSH to set credentials C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress g...@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/* ERROR: Timeout after 10 minutesFATAL http://stacktrace.jenkins-ci.org/search?query=FATAL: Failed to fetch from g...@bitbucket.org:CoolBlueSolutions/cool-blue-solutions.githudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Failed to fetch from g...@bitbucket.org:CoolBlueSolutions/cool-blue-solutions.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:624) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFromentity=method at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:856) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChangesentity=method at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkoutentity=method at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkoutentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckoutentity=method at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkoutentity=method at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method at hudson.model.Run.execute(Run.java:1732) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.runentity=method at hudson.model.ResourceController.execute(ResourceController.java:88) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method at hudson.model.Executor.run(Executor.java:234) http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method Caused by: hudson.plugins.git.GitException http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException: Command C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress g...@bitbucket.org:CoolBlueSolutions/cool-blue-solutions.git +refs/heads/*:refs/remotes/origin/* returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622) ... 10 more -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins timing out to connect to Bitbucket when building project
I think you are listing a directory in a field which needs the git executable. That output should have cmd\git or cmd\git.exe or bin\git or bin\git.exe Mark Waite On Aug 8, 2014 1:40 AM, david guetta mrsilents...@gmail.com wrote: Hello there, I have got a bitbucket repository and git installed. I wan to to connect my bitbucket with jenkins and vice versa. However, it does not work. I get this error in my Jenkins project: Failed to connect to repository url : Error performing command: C:\Program Files (x86)\Git\cmd ls-remote -h g...@bitbucket.org:test/test-test2.git HEAD I have put my Git/cmd folder as executable in general settings for Jenkins, but when I try to enter the repository url, the above error is being displayed. I have added the SSH keys but no luck so far. I have added the PIDs of the agents in the files in order to be recognized, but no progress. I have also tried to run the JENKINS service by logging as a user rather than a local user but also didn't work. I know it should have been working just by adding the id_rsa key to bitbucket's account, but I am exhausted already. Any help would be really really appreciated, I have been struggling with this issue for quite some time now. After I have done some fixes, this is the error I get now: RROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress g...@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/* returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) 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) ERROR: null Finished: FAILURE -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins timing out to connect to Bitbucket when building project
You might also try using bin rather than the cmd version of git On Aug 8, 2014 1:40 AM, david guetta mrsilents...@gmail.com wrote: Hello there, I have got a bitbucket repository and git installed. I wan to to connect my bitbucket with jenkins and vice versa. However, it does not work. I get this error in my Jenkins project: Failed to connect to repository url : Error performing command: C:\Program Files (x86)\Git\cmd ls-remote -h g...@bitbucket.org:test/test-test2.git HEAD I have put my Git/cmd folder as executable in general settings for Jenkins, but when I try to enter the repository url, the above error is being displayed. I have added the SSH keys but no luck so far. I have added the PIDs of the agents in the files in order to be recognized, but no progress. I have also tried to run the JENKINS service by logging as a user rather than a local user but also didn't work. I know it should have been working just by adding the id_rsa key to bitbucket's account, but I am exhausted already. Any help would be really really appreciated, I have been struggling with this issue for quite some time now. After I have done some fixes, this is the error I get now: RROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress g...@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/* returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) 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) ERROR: null Finished: FAILURE -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jenkins timing out to connect to Bitbucket when building project
You might try creating a job with no SCM which attempts git commands to that bitbucket repository. It will fail initially because the authentication won't match. However, it may provide you more verbose output to diagnose why the authentication is failing. Are you using a private key which requires a password? If so, then it is known that there are cases where a private key with password does not work with the git plugin. Try a private key which does not require a password. You might also experiment with the ssh-agent plugin (though my experiments with it did not resolve authentication issues I encountered). Mark Waite On Fri, Aug 8, 2014 at 6:54 AM, david guetta mrsilents...@gmail.com wrote: Hello, It's set to git.exe and I have tried both bin and cmd. Any other ideas? On Friday, 8 August 2014 08:40:52 UTC+1, david guetta wrote: Hello there, I have got a bitbucket repository and git installed. I wan to to connect my bitbucket with jenkins and vice versa. However, it does not work. I get this error in my Jenkins project: Failed to connect to repository url : Error performing command: C:\Program Files (x86)\Git\cmd ls-remote -h g...@bitbucket.org:test/test-test2.git HEAD I have put my Git/cmd folder as executable in general settings for Jenkins, but when I try to enter the repository url, the above error is being displayed. I have added the SSH keys but no luck so far. I have added the PIDs of the agents in the files in order to be recognized, but no progress. I have also tried to run the JENKINS service by logging as a user rather than a local user but also didn't work. I know it should have been working just by adding the id_rsa key to bitbucket's account, but I am exhausted already. Any help would be really really appreciated, I have been struggling with this issue for quite some time now. After I have done some fixes, this is the error I get now: RROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress g...@bitbucket.org: test/test.git +refs/heads/*:refs/remotes/origin/* returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl. launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl. launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl. access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1. execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2. execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) 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) ERROR: null Finished: FAILURE -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Thanks! Mark Waite -- You received this message because you are subscribed to the Google Groups Jenkins Users group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.