Jenkins on Windows: UE4 packaging for iOS fails with “Host key verification failed.”

时光总嘲笑我的痴心妄想 提交于 2020-01-25 04:41:05

问题


I have this Jenkins server running on my Windows machine. What the jobs do is it runs some python code that is also on the same machine, to package .ipa file (for iOS) using UE4 engine and ships it.

Everything works just fine if I run python code locally. But when I run it through Jenkins, it will fail at some point where UE4 is trying to sign the package. This is partial error message I'm getting.

Using remote server 'XXX.YYY.ZZZ.56' on port 22 (user '***********')
[Remote] Using private key at ...\RemoteToolChainPrivate.key
ERROR: Unable to determine home directory for remote user. SSH output:
           Host key verification failed.

I think for some reason Jenkins doesn't know where ssh related stuffs are located in windows.

How can I fix this issue?


回答1:


Assuming you installed Jenkins as a Windows Service, then Jenkins is probably running as another user (not the user you sign in as).

In the Services app, you can change the user the service is running as if necessary. You can find the Services app here:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\services.lnk

See About Services for more info.

That explains why the remote cannot find the home directory (because the remote user has a different name than the service account user) and also why the host key verification failed (since you never accepted the host key as the service account user).



来源:https://stackoverflow.com/questions/59259136/jenkins-on-windows-ue4-packaging-for-ios-fails-with-host-key-verification-fail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!