gpt4 book ai didi

jenkins - 为什么 Jenkins CLI 不能在我们的 Dev@Cloud 实例上运行?

转载 作者:行者123 更新时间:2023-12-04 04:58:44 25 4
gpt4 key购买 nike

我一直无法使用 Jenkins CLI WAR 登录到我们的 Dev@Cloud 实例。每次尝试时,我都会收到以下消息:

You must authenticate to access this Jenkins.



我的 SSH key 在我们的 Jenkins 实例和 GrandCentral 中设置。我试过执行登录命令,但最终出现以下异常:
org.acegisecurity.userdetails.UsernameNotFoundException: Not Found or Not Authorized
at com.cloudbees.jenkins.plugins.dacsecurity.auth.CloudBeesUserDetailsService.loadUserByUsername(CloudBeesUserDetailsService.java:60)
at com.cloudbees.jenkins.plugins.dacsecurity.auth.CloudBeesUserDetailsService.loadUserByUsername(CloudBeesUserDetailsService.java:12)
at hudson.security.SecurityRealm.loadUserByUsername(SecurityRealm.java:305)
at hudson.cli.ClientAuthenticationCache.set(ClientAuthenticationCache.java:94)
at hudson.cli.LoginCommand.run(LoginCommand.java:37)
at hudson.cli.CLICommand.main(CLICommand.java:229)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:275)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:256)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
at hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

对此的任何帮助表示赞赏。

最佳答案

可能是连接时未使用正确的 ssh key 的情况 - 它会在 ~/.ssh/id_rsa 等中查找 - 与“ssh”命令相同。

如果您仍然无法解决 - 请打开工单 support@cloudbees.com 因为您可能需要更具体地讨论您的设置

您可能需要在 ~/.ssh/config 中放置一个条目,例如:

Host account.ci.cloudbees.net                                                                                                                                                                          
IdentityFile ~/.ssh/id_rsa

指向你想用来识别的私钥(如果你为你的用户使用默认的,你应该没问题)

关于jenkins - 为什么 Jenkins CLI 不能在我们的 Dev@Cloud 实例上运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16417460/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com