SSH Credential's username isn't used.

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: