2017-11-22 23 views
0

JenkinsマスターをSSH経由でスレーブノードに接続しようとしています。私は、ターミナルからマスターノードとスレーブノードの間でSSHできることを確認しました。私はJenkinsにスレーブノードの鍵とパスワードを提供しました。私のホストキー検証戦略がManually Trusted key verification Strategy. When I select Launch Agent`の場合、次のエラーが表示されます。

[11/22/17 09:40:39] [SSH] Opening SSH connection to ec2-**-**-**-**.*********.compute.amazonaws.com:22. 
[11/22/17 09:40:39] [SSH] SSH host key matches key seen previously for this host. Connection will be allowed. 
[11/22/17 09:40:39] [SSH] Authentication successful. 
SSH connection reports a garbage before a command execution. 
Check your .bashrc, .profile, and so on to make sure it is quiet. 
The received junk text is as follows: 
tput: No value for $TERM and no -T specified 
tput: No value for $TERM and no -T specified 

null 
[11/22/17 09:40:39] Launch failed - cleaning up connection 
[11/22/17 09:40:39] [SSH] Connection closed. 

マスターノードのJenkinsログには、次の情報が表示されます。

Nov 22, 2017 10:18:57 AM hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager getTrileadSupport 
WARNING: Could not create Trilead support class. Using legacy Trilead features 
java.lang.ClassNotFoundException: hudson.plugins.sshslaves.verifiers.JenkinsTrilead9VersionSupport 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
    at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.createVersion9Instance(TrileadVersionSupportManager.java:51) 
    at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.getTrileadSupport(TrileadVersionSupportManager.java:32) 
    at hudson.plugins.sshslaves.verifiers.SshHostKeyVerificationStrategy.getPreferredKeyAlgorithms(SshHostKeyVerificationStrategy.java:68) 
    at hudson.plugins.sshslaves.verifiers.ManuallyTrustedKeyVerificationStrategy.getPreferredKeyAlgorithms(ManuallyTrustedKeyVerificationStrategy.java:105) 
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:797) 
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
    at java.lang.Thread.run(Thread.java:748) 

[11/22/17 10:18:58] SSH Launch of DevOperations on ec2-**-**-**-**.*********.compute.amazonaws.com failed in 641 ms 

.bashrcの問題のように見えるが、私はそれは静かにする.bashrcファイルで編集するのか分かりません。

SSHの起動を成功させるにはどうすればよいですか?

Jenkins:ver。 2.91

マスターノード:アマゾンのLinux AMIは2017.09

スレーブノードを解放:Ubuntuの14.04

答えて

0

を私が修正を見つけました。スレーブボックスで、私はそれが実行されている色を設定した場所削除する~/.bashrcを編集する必要がありました:

magenta=$(tput setaf 4) 
reset=$(tput sgr0) 

がこの問題を修正削除

関連する問題