Host git.oschina.netlinux
IdentityFile ~/.ssh/id_rsa_oschinagit
Host 192.168.88.70web
IdentityFile ~/.ssh/id_dsa70服務器
ssh -vT wzp@192.168.88.70 |
debug1: Skipping ssh-dss key /c/Users/UM_CI_BUILDER/.ssh/id_dsa70 for not in PubkeyAcceptedKeyTypes |
E:\Jenkins_work\QA_UM_SSO\workspace\cas-server-webapp\target>scp cas.war wzp@192.168.88.70:/home/wzp/app
E:\Jenkins_work\QA_UM_SSO\workspace\cas-server-webapp\target>exit 0ssh
SSH: Connecting from host [WIN12FILESRV1]webapp
SSH: Connecting with configuration [LINUX CAS SVR-80-Test] ... ERROR: Exception when publishing, exception message [Failed to read file - filename [C:\Users\UM_CI_BUILDER\.ssh\id_dsa] (relative to JENKINS_HOME if not absolute).ide
Message: [C:\Users\UM_CI_BUILDER\.ssh\id_dsa (The system cannot find the file specified)]] Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE測試
Finished: UNSTABLEui
這個須要在jenkins全局配置,增長LINUX CAS SVR-80-Test 在publish over ssh中的定義。
好吧,終於把Jenkins發佈到linux的坑給填完了。