Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22855

SSH Credential's username isn't used.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None
    • git-client: 1.6.6
      jenkins: 1.532.3

      It appears that launchCommandWithCredentials doesn't tell ssh about the SSH Credential's username:

      https://github.com/jenkinsci/git-client-plugin/blob/master/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java#L1106

      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.

            Unassigned Unassigned
            docwhat Christian Höltje
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: