Artem Belov commented on Bug JENKINS-20533

Have the same issue with git 2.0 and git-client 1.6 plugins
I was trying to fix it using previous versions.
In all these versions auth was broken due to some reasons,

Caused by: hudson.plugins.git.GitException: Failed to connect to https://stash.***/***.git using credentials YYY (status = 403)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1610)

hudson.plugins.git.GitException: Failed to connect to https://login@stash.***/***.git (status = 403)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getURLWithCrendentials(CliGitAPIImpl.java:1437)

hudson.plugins.git.GitException: Failed to connect to https://login@stash.***/***.git (status = 403)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1597)

hudson.plugins.git.GitException: Failed to connect to https://login@stash.***/***.git (status = 403)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1610)

and so on. Sorry, couldn't map these messages to versions now. It was both versions with integrated credentials plugin and without it.

The only working solution was roll back to git 1.5 and git-client 1.0.7.

I guess one of the possible causes of the bug is that my git login contains @ sign which should be replaced by %40 to be put into connection string correctly. And it's not clear should I use it when define login/password pair in credentials password. Anyway, it's just a guess, because neither @ nor %40 worked

Some info about enviroment:

  1. Git server is internal Atlassian Stash
  2. We have to use https instead of SSL because of firewall issues
  3. To force it we use sslVerify = false in git config
  4. It properly works using CLI directly and from Jenkins with plugins git 1.5 and git-client 1.0.7 but not later ones.
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to