admin管理员组文章数量:1405332
I'm trying to setup a Jenkins server to periodically build a project that is stored in git. I've got as far as setting up the server, installing all the tools, setting up Tomcat and installing Jenkins with all of the required plug-ins. I'm now trying to create my first project.
The project is supposed to pull the code from git before building it.
I've gone into Manage Jenkins > Credentials and entered my git credentials. Then I create my project - I enter my repo URL, which is myUser@myServer:myProject.git
and select the credentials I've created. Then message pops up that says:
Failed to connect to repository : Command "git ls-remote -h -- myUser@myServer:myProject.git HEAD" returned status code 128:
stdout:
stderr: Permission denied, please try again.
Permission denied, please try again.
myUser@myServer: Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
If I run this command locally, as the tomcat user, it works as expected. I can't understand why it doesn't work inside Jenkins
本文标签: Configuring Jenkins with Git CredentialsStack Overflow
版权声明:本文标题:Configuring Jenkins with Git Credentials - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744303927a2599718.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论