设置详情:
Windows 10上的JENKINS
完成GIT插件设置
公共私钥设置已完成
通过Jenkins的git clone失败并出现以下错误
"C:\Program Files (x86)\Jenkins\workspace\Aclselenium>git clone rahulp@10.0.6.194:/Operations/repo/git/test.git
Cloning into 'test'...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."
通过windows cmd运行以下命令
"whoami" command gives > "acl-wireless\rahulp"
"echo %USERNAME%" command gives `> "rahulp"`
当我通过JENKINS执行命令时,我收到:
"whoami" command gives > "nt authority\system"
"echo %USERNAME%" command gives `> "RAHULPANDEY$ RAHULPANDEY$"`
答案 0 :(得分:0)
您对git
的命令行访问权限以及对jenkins
的{{1}}访问权限是两回事。从命令行,您将获得git
和username
登录。但是从password
开始,您需要配置凭据。转到jenkins
=> Manage Jenkins
=> Configure System
请在那里提供凭据。