[JIRA] (JENKINS-40233) Jenkins fails to fetch from remote repo (BitBucket and GitLab)

16 views
Skip to first unread message

akshru963@gmail.com (JIRA)

unread,
Dec 5, 2016, 4:39:02 PM12/5/16
to jenkinsc...@googlegroups.com
Akshaya Appaswamy created an issue
 
Jenkins / Bug JENKINS-40233
Jenkins fails to fetch from remote repo (BitBucket and GitLab)
Issue Type: Bug Bug
Assignee: Stephen Connolly
Components: credentials-plugin, git-client-plugin, git-plugin
Created: 2016/Dec/05 9:38 PM
Environment: Jenkins 2.34
Labels: jenkins git free-style
Priority: Critical Critical
Reporter: Akshaya Appaswamy

I am trying to run the Jenkins job for data migration and the remote repository which is configured in my Jenkins job is a BitBucket private repository. It fails to fetch from the repository if it's private however works smooth with a public ones. I have posted the error message that I am getting. Any kind of help on this issue would be appreciated. Thank you!

Started by user Akshaya Appaswamy
Building in workspace C:\Program Files (x86)\Jenkins\workspace\WinZonePOC
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git # timeout=10
Fetching upstream changes from https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git
> git.exe --version # timeout=10
using GIT_SSH to set credentials
> git.exe fetch --tags --progress https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git +refs/heads/:refs/remotes/origin/
ERROR: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git +refs/heads/:refs/remotes/origin/" returned status code -1:
stdout:
stderr:
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1745)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1489)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:801)
... 11 more
ERROR: null
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

akshru963@gmail.com (JIRA)

unread,
Dec 5, 2016, 5:28:01 PM12/5/16
to jenkinsc...@googlegroups.com

akshru963@gmail.com (JIRA)

unread,
Dec 5, 2016, 5:51:01 PM12/5/16
to jenkinsc...@googlegroups.com
Akshaya Appaswamy updated an issue
I am trying to run the Jenkins job for data migration and the remote repository which is configured in my Jenkins job is a BitBucket private repository. It fails to fetch from the repository if it's private however works smooth with a public ones. I have posted the error message that I am getting. Any kind of help on this issue would be appreciated. Thank you!

Also, I have tried the  following techniques to achieve the same but to no avail.
Username with password, SSH key with and without passphrase, changing the working directory,

Started by user Akshaya Appaswamy
Building in workspace C:\Program Files (x86)\Jenkins\workspace\WinZonePOC
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git # timeout=10
Fetching upstream changes from https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git
> git.exe --version # timeout=10
using GIT_SSH to set credentials
> git.exe fetch --tags --progress https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git +refs/heads/*:refs/remotes/origin/*

ERROR: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress https://aksha...@bitbucket.org/saitharunn7/winzonepoc.git +refs/heads/*:refs/remotes/origin/*" returned status code -1:

stdout:
stderr:
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1745)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1489)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:801)
... 11 more
ERROR: null
Finished: FAILURE

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 5, 2016, 7:35:03 PM12/5/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

Please don't use bug reports for authentication issues. They are almost always configuration errors from the user rather than issues in the plugin.

The Jenkins users mailing list is much more helpful with authentication issues, since there are many more people reading the Jenkins user mailing list than read the bug reports for the git plugin.

I regularly test private repository access to BitBucket, GitLab, GitHub, and Assembla repositories from Windows and Linux machines using both https (username / password) and ssh (private key) based access to those repositories. It is a standard part of the automated tests I execute regularly as well.

Change By: Mark Waite
Status: Open Resolved
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages