-
Bug
-
Resolution: Fixed
-
Major
-
None
-
git-client: 1.6.6
jenkins: 1.532.3
It appears that launchCommandWithCredentials doesn't tell ssh about the SSH Credential's username:
If you try using the git plugin to clone a URL like ssh://git.example.com/path/to/repo.git
It will use the username that the slave.jar is running as, not the username in the credentials.
- is duplicated by
-
JENKINS-29604 git-client CLI implementation does not propogate username
-
- Closed
-
- is related to
-
JENKINS-22909 git plugin does not support username/password over ssh
-
- Closed
-
I think that I've seen this fail the initial checks performed when defining the job from the web interface. I created a new job with Git for SCM, and the URL ssh://markwaite/var/lib/git/mwaite/bin.git . When I tried to use a credential for that machine (user name mwaite, private key), I see an entry in the /var/log/auth.log file on that machine for the user jenkins attempting a connection, rather than the user mwaite.
I was expected to see "Failed password for mwaite" rather than "Failed password for jenkins".