我试图使用Jenkins在Windows服务器上执行一些厨师命令。
当我在Jenkins上运行构建以执行厨师命令时,我得到以下错误:
ERROR: Failed to authenticate to 172.54.78.989 as demo-user
Response: WinRM::WinRMAuthorizationError
Hint: Make sure to prefix domain usernames with the correct domain name.
Hint: Local user names should be prefixed with computer name or IP address.
EXAMPLE: my_domain\user_namer
ERROR: WinRM::WinRMAuthorizationError: WinRM::WinRMAuthorizationError
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE 想办法解决这个问题
发布于 2022-02-09 12:53:06
I能够解决这个问题,
这是因为我的用户(demo-user)不属于允许从主厨连接到Windows的域名。
我所要做的就是找到一个属于我的组织域名的用户,在我的主厨命令中用这个用户替换demo-user,然后再运行Jenkins构建。
这次一切都很顺利。
https://stackoverflow.com/questions/71049977
复制相似问题