好的,所以我花了数年时间尝试设置这个詹金斯服务器,但到处都是错误。大多数答案都是针对 linux 的,这个 jenkins 服务器在 windows 上(如果你知道如何在 linux jenkins 上设置 msbuild 的话)。
服务器已按应有的方式设置,我正在做的最后一件超级超级基本的事情是尝试从 aws codecommit 中提取 repo,我拥有正确的角色和凭据。
我收到这条消息
Jenkins Failed to connect to repository :
"git.exe ls-remote -h https://repo-url HEAD" Command returned status code 128:
它接着说
stderr: fatal: unable to access 'https://repo-url': The requested URL returned error: 403
但是,将相同的命令复制到 cmd 窗口中,它工作得很好。
有一个名为 的插件codecommit-url-helper
,它也被安装并尝试过,它所做的只是大大降低了我的希望和梦想。
如果您的解决方案涉及 jenkins cli,请知道我也尝试过,但是:
C:\Users\Administrator\Downloads> java -jar jenkins-cli.jar -s http://localhost:8080/ help
Sep 21, 2016 2:14:33 PM hudson.remoting.SynchronousCommandTransport$ReaderThread run
SEVERE: I/O error in channel Chunked connection to http://localhost:8080/cli
[更新]
对于那些想知道我最终做了两件事git config --system
的人,使用角色配置凭据,然后我在“Git 插件”下的詹金斯系统设置中添加了全局用户名和电子邮件,其中一个做到了。