authenticated problem : bug in gitblit ?

194 views
Skip to first unread message

Sascha F.

unread,
Jun 2, 2014, 3:54:23 PM6/2/14
to git...@googlegroups.com
Hi,

following situation is given.

- repo "xyz" created
- "" set

the repo is cloned by jenkins after every push.

my problem is the setting "
access restriction":
- with setting "authenticated clone & push", jenkins git plugin throws follwoing exception:

21:00:48 Cloning repository http://user:pw@hostname:7777/git/iks/app/tsmail.git
21:00:48 Fetching upstream changes from http://user@hostname:7777/git/iks/app/tsmail.git
21:00:49 ERROR: Error cloning remote repo 'origin'
21:00:49 hudson.plugins.git.GitException: Command "git fetch --tags --progress http://user@hostname:7777/git/iks/app/tsmail.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
21:00:49 stdout:
21:00:49 stderr: fatal: Authentication failed
21:00:49
21:00:49     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1086)
21:00:49     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:968)
21:00:49     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:71)
21:00:49     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:197)
21:00:49     at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:329)
21:00:49     at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:839)
21:00:49     at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872)
21:00:49     at hudson.model.AbstractProject.checkout(AbstractProject.java:1369)
21:00:49     at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
21:00:49     at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
21:00:49     at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
21:00:49     at hudson.model.Run.execute(Run.java:1576)
21:00:49     at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:486)
21:00:49     at hudson.model.ResourceController.execute(ResourceController.java:88)
21:00:49     at hudson.model.Executor.run(Executor.java:241)
21:00:49 ERROR: null


After changing setting to "authenticated push", the jenkins jobs runs properly.

Any ideas?
jenkins bug?
gitblit bug?

jenkins version information:
- jenkins itself 1.518
- Jenkins GIT client plugin : 1.9.1
- Jenkins GIT plugin : 2.2.1


Thanks in advance,

Sascha

James Moger

unread,
Jun 2, 2014, 4:18:53 PM6/2/14
to git...@googlegroups.com
You configured the repository to require authentication on clone & push.  Your jenkins job is attempting to clone/fetch but is either not sending authentication credentials OR is sending invalid credentials.  I would say Gitblit is behaving correctly in rejecting the fetch request.

-J



--
You received this message because you are subscribed to the Google Groups "gitblit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitblit+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sascha F.

unread,
Jun 3, 2014, 3:50:32 AM6/3/14
to git...@googlegroups.com
Updates:

Problem solved.

The problem was the combination of installed git plugin in jenkins and used installed git version in windows.

old git version 1.7.6
new git version 1.9.2

the old git version has no credential functionality.

After switching the jobs to the new git version, the issue has been solved.


Greetz,
Sascha
Reply all
Reply to author
Forward
0 new messages