Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created May 21, 2015 23:17
Show Gist options
  • Save kohsuke/bf30b0f5a193cbb5690d to your computer and use it in GitHub Desktop.
Save kohsuke/bf30b0f5a193cbb5690d to your computer and use it in GitHub Desktop.
Failure mode
Started by user anonymous
Building in workspace /files/kohsuke/ws/jenkins/git-plugin/work/workspace/error
Fetching changes from the remote Git repository
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://github.com/cloudbees/jce.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:737)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:985)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1018)
at hudson.scm.SCM.checkout(SCM.java:488)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1745)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://github.com/cloudbees/jce.git: Authentication is required but no CredentialsProvider has been registered
at org.jenkinsci.plugins.gitclient.JGitAPIImpl$2.execute(JGitAPIImpl.java:626)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)
... 11 more
Caused by: org.eclipse.jgit.api.errors.TransportException: https://github.com/cloudbees/jce.git: Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
at org.jenkinsci.plugins.gitclient.JGitAPIImpl$2.execute(JGitAPIImpl.java:624)
... 12 more
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/cloudbees/jce.git: Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:498)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
... 13 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE
Started by user anonymous
Building in workspace /files/kohsuke/ws/jenkins/git-plugin/work/workspace/error
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/cloudbees/jce.git # timeout=10
Fetching upstream changes from https://github.com/cloudbees/jce.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress https://github.com/cloudbees/jce.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://github.com/cloudbees/jce.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:737)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:985)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1018)
at hudson.scm.SCM.checkout(SCM.java:488)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1745)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress https://github.com/cloudbees/jce.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/cloudbees/jce.git/'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1572)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1360)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:300)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)
... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment