Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,10 @@
userName = sshUser.getUsername();
}
passphrase = createPassphraseFile(sshUser);
knownHostsTemp = createTempFile("known_hosts", "");
/* ssh.exe 9.5 on Windows does not accept spaces in path to known_hosts.
* Use temp file wrapper location because known_hosts is not sensitive info.
*/
knownHostsTemp = createTempFileForWrapper("known_hosts", "");

Check warning on line 2136 in src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 2136 is not covered by tests
if (launcher.isUnix()) {
ssh = createUnixGitSSH(key, userName, knownHostsTemp);
askpass = createUnixSshAskpass(sshUser, passphrase);
Expand Down
Loading