Git native ssh related logging
authorDmitry Neverov <dmitry.neverov@gmail.com>
Fri, 15 Dec 2017 16:10:18 +0000 (17:10 +0100)
committerDmitry Neverov <dmitry.neverov@gmail.com>
Fri, 15 Dec 2017 16:10:18 +0000 (17:10 +0100)
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/GitCommandLine.java

index dd7cde59ae428183c2ff7e8d651f758bbb0aa0b9..f07433f49b0710d3d2cd6ea4539696c29bcd25ce 100644 (file)
@@ -119,8 +119,12 @@ public class GitCommandLine extends GeneralCommandLine {
         }
       }
       if (settings.isUseNativeSsh()) {
+        myLogger.message("Use native ssh (" + PluginConfigImpl.USE_NATIVE_SSH + "=true)");
         if (!myGitVersion.isLessThan(UpdaterImpl.MIN_GIT_SSH_COMMAND) && authSettings.getAuthMethod() == AuthenticationMethod.TEAMCITY_SSH_KEY) {
           configureGitSshCommand(authSettings);
+        } else {
+          myLogger.message("Git " + myGitVersion + " doesn't support the GIT_SSH_COMMAND environment variable, uploaded keys will not work. " +
+                           "Required git version is " + UpdaterImpl.MIN_GIT_SSH_COMMAND);
         }
         return CommandUtil.runCommand(this, settings.getTimeout());
       } else {