SSH Credential's username isn't used.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: git-client-plugin
    • None
    • Environment:
      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.

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

              Created:
              Updated:
              Resolved: