We are also experiencing this problem. I have found no way to get this working, even with assorted values in the credentials plugin. My best guess at the moment is that the plugin is unable to deal with self-signed SSL certificates... but since I don't have a non-self-signed certificate to switch to, I can't confirm.

The only solution I've found is reverting all the way back to git 1.2.0 plugin as described at https://issues.jenkins-ci.org/browse/JENKINS-17204. Versions 1.3.0 through 1.5.0 failed with one error message; Version 2.0 continues to fail, although with a different error message:

Started by user My Name
[EnvInject] - Loading node environment variables.
Building on master in workspace D:\Jenkins\jobs\test\workspace
Fetching changes from the remote Git repository
Fetching upstream changes from https://validusern...@git.domainname.net/scm/SVC/devkit.git
FATAL: Failed to fetch from https://validusern...@git.domainname.net/scm/SVC/devkit.git
hudson.plugins.git.GitException: Failed to fetch from https://validusern...@git.domainname.net/scm/SVC/devkit.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1412)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557)
	at hudson.model.Run.execute(Run.java:1679)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:230)
Caused by: hudson.plugins.git.GitException: Failed to connect to https://validusern...@git.domainname.net/scm/SVC/devkit.git
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getURLWithCrendentials(CliGitAPIImpl.java:1441)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:179)
	at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:610)
	... 10 more

I have a valid "Username with password" credential selected. On the project configuration page, it presents a red error message:

Failed to connect to repository : Failed to connect to https://git.domainname.net/scm/SVC/devkit.git using credentials credentialsname
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to