jenkins配置从git上拉取代码的项目时Repository URL报错

jenkins配置从git上拉取代码的项目时Repository URL报错([|1x16(http://localhost:9394/static/932c0f06/images/none.gif)Failed to connect to repository : Command “C:\Program Files\Git\bin\git.exe ls-remote -h – dhx1994 · GitHub HEAD” returned status code 128:stdout:stderr: fatal: unable to access ‘dhx1994 · GitHub’: OpenSSL SSL_read: Connection was reset, errno 10054),百度了回答,还是没有解决。


这个是Credentials,previte key是jenkins.ssh文件目录下得密钥,git上也存储了这个密钥,

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
-----END OPENSSH PRIVATE KEY-----

passphrase填入的是生成密钥时的密码

地址不对;仓库地址是这样获取的

  • 如果你要用https的git地址,验证信息就需要配置账号密码
  • 如果你要用git@形式的git地址,验证信息就需要使用公钥
  • 这两种身份信息和你填写的项目git地址是一一对应的,混用是不行的
  • 另外你的git地址写的也不对,直接复制项目的链接是不行的,需要按照楼上老师写的,去clone的地方拷贝真正的git地址,而不是网页访问用的链接

Repository URL正常了,但是执行的时候报错了。

Started by user jack
Running as SYSTEM
Building in workspace C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\first
The recommended git tool is: NONE
using credential 98838a66-b3e9-4a75-877a-823644bc3eee
Cloning the remote Git repository
Cloning repository https://github.com/dhx1994/cekaizhilu.git
 > C:\Program Files\Git\bin\git.exe init C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\first # timeout=10
Fetching upstream changes from https://github.com/dhx1994/cekaizhilu.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
 > git --version # 'git version 2.31.1.windows.1'
using GIT_ASKPASS to set credentials 使用账号密码
 > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress -- https://github.com/dhx1994/cekaizhilu.git +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --force --progress -- https://github.com/dhx1994/cekaizhilu.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: remote: Enumerating objects: 132, done.        
remote: Counting objects:   0% (1/132)        
remote: Counting objects:   1% (2/132)        
remote: Counting objects:   2% (3/132)        
remote: Counting objects:   3% (4/132)        
remote: Counting objects:   4% (6/132)        
remote: Counting objects:   5% (7/132)        
remote: Counting objects:   6% (8/132)        
remote: Counting objects:   7% (10/132)        
remote: Counting objects:   8% (11/132)        
remote: Counting objects:   9% (12/132)        
remote: Counting objects:  10% (14/132)        
remote: Counting objects:  11% (15/132)        
remote: Counting objects:  12% (16/132)        
remote: Counting objects:  13% (18/132)        
remote: Counting objects:  14% (19/132)        
remote: Counting objects:  15% (20/132)        
remote: Counting objects:  16% (22/132)        
remote: Counting objects:  17% (23/132)        
remote: Counting objects:  18% (24/132)        
remote: Counting objects:  19% (26/132)        
remote: Counting objects:  20% (27/132)        
remote: Counting objects:  21% (28/132)        
remote: Counting objects:  22% (30/132)        
remote: Counting objects:  23% (31/132)        
remote: Counting objects:  24% (32/132)        
remote: Counting objects:  25% (33/132)        
remote: Counting objects:  26% (35/132)        
remote: Counting objects:  27% (36/132)        
remote: Counting objects:  28% (37/132)        
remote: Counting objects:  29% (39/132)        
remote: Counting objects:  30% (40/132)        
remote: Counting objects:  31% (41/132)        
remote: Counting objects:  32% (43/132)        
remote: Counting objects:  33% (44/132)        
remote: Counting objects:  34% (45/132)        
remote: Counting objects:  35% (47/132)        
remote: Counting objects:  36% (48/132)        
remote: Counting objects:  37% (49/132)        
remote: Counting objects:  38% (51/132)        
remote: Counting objects:  39% (52/132)        
remote: Counting objects:  40% (53/132)        
remote: Counting objects:  41% (55/132)        
remote: Counting objects:  42% (56/132)        
remote: Counting objects:  43% (57/132)        
remote: Counting objects:  44% (59/132)        
remote: Counting objects:  45% (60/132)        
remote: Counting objects:  46% (61/132)        
remote: Counting objects:  47% (63/132)        
remote: Counting objects:  48% (64/132)        
remote: Counting objects:  49% (65/132)        
remote: Counting objects:  50% (66/132)        
remote: Counting objects:  51% (68/132)        
remote: Counting objects:  52% (69/132)        
remote: Counting objects:  53% (70/132)        
remote: Counting objects:  54% (72/132)        
remote: Counting objects:  55% (73/132)        
remote: Counting objects:  56% (74/132)        
remote: Counting objects:  57% (76/132)        
remote: Counting objects:  58% (77/132)        
remote: Counting objects:  59% (78/132)        
remote: Counting objects:  60% (80/132)        
remote: Counting objects:  61% (81/132)        
remote: Counting objects:  62% (82/132)        
remote: Counting objects:  63% (84/132)        
remote: Counting objects:  64% (85/132)        
remote: Counting objects:  65% (86/132)        
remote: Counting objects:  66% (88/132)        
remote: Counting objects:  67% (89/132)        
remote: Counting objects:  68% (90/132)        
remote: Counting objects:  69% (92/132)        
remote: Counting objects:  70% (93/132)        
remote: Counting objects:  71% (94/132)        
remote: Counting objects:  72% (96/132)        
remote: Counting objects:  73% (97/132)        
remote: Counting objects:  74% (98/132)        
remote: Counting objects:  75% (99/132)        
remote: Counting objects:  76% (101/132)        
remote: Counting objects:  77% (102/132)        
remote: Counting objects:  78% (103/132)        
remote: Counting objects:  79% (105/132)        
remote: Counting objects:  80% (106/132)        
remote: Counting objects:  81% (107/132)        
remote: Counting objects:  82% (109/132)        
remote: Counting objects:  83% (110/132)        
remote: Counting objects:  84% (111/132)        
remote: Counting objects:  85% (113/132)        
remote: Counting objects:  86% (114/132)        
remote: Counting objects:  87% (115/132)        
remote: Counting objects:  88% (117/132)        
remote: Counting objects:  89% (118/132)        
remote: Counting objects:  90% (119/132)        
remote: Counting objects:  91% (121/132)        
remote: Counting objects:  92% (122/132)        
remote: Counting objects:  93% (123/132)        
remote: Counting objects:  94% (125/132)        
remote: Counting objects:  95% (126/132)        
remote: Counting objects:  96% (127/132)        
remote: Counting objects:  97% (129/132)        
remote: Counting objects:  98% (130/132)        
remote: Counting objects:  99% (131/132)        
remote: Counting objects: 100% (132/132)        
remote: Counting objects: 100% (132/132), done.        
remote: Compressing objects:   1% (1/91)        
remote: Compressing objects:   2% (2/91)        
remote: Compressing objects:   3% (3/91)        
remote: Compressing objects:   4% (4/91)        
remote: Compressing objects:   5% (5/91)        
remote: Compressing objects:   6% (6/91)        
remote: Compressing objects:   7% (7/91)        
remote: Compressing objects:   8% (8/91)        
remote: Compressing objects:   9% (9/91)        
remote: Compressing objects:  10% (10/91)        
remote: Compressing objects:  12% (11/91)        
remote: Compressing objects:  13% (12/91)        
remote: Compressing objects:  14% (13/91)        
remote: Compressing objects:  15% (14/91)        
remote: Compressing objects:  16% (15/91)        
remote: Compressing objects:  17% (16/91)        
remote: Compressing objects:  18% (17/91)        
remote: Compressing objects:  19% (18/91)        
remote: Compressing objects:  20% (19/91)        
remote: Compressing objects:  21% (20/91)        
remote: Compressing objects:  23% (21/91)        
remote: Compressing objects:  24% (22/91)        
remote: Compressing objects:  25% (23/91)        
remote: Compressing objects:  26% (24/91)        
remote: Compressing objects:  27% (25/91)        
remote: Compressing objects:  28% (26/91)        
remote: Compressing objects:  29% (27/91)        
remote: Compressing objects:  30% (28/91)        
remote: Compressing objects:  31% (29/91)        
remote: Compressing objects:  32% (30/91)        
remote: Compressing objects:  34% (31/91)        
remote: Compressing objects:  35% (32/91)        
remote: Compressing objects:  36% (33/91)        
remote: Compressing objects:  37% (34/91)        
remote: Compressing objects:  38% (35/91)        
remote: Compressing objects:  39% (36/91)        
remote: Compressing objects:  40% (37/91)        
remote: Compressing objects:  41% (38/91)        
remote: Compressing objects:  42% (39/91)        
remote: Compressing objects:  43% (40/91)        
remote: Compressing objects:  45% (41/91)        
remote: Compressing objects:  46% (42/91)        
remote: Compressing objects:  47% (43/91)        
remote: Compressing objects:  48% (44/91)        
remote: Compressing objects:  49% (45/91)        
remote: Compressing objects:  50% (46/91)        
remote: Compressing objects:  51% (47/91)        
remote: Compressing objects:  52% (48/91)        
remote: Compressing objects:  53% (49/91)        
remote: Compressing objects:  54% (50/91)        
remote: Compressing objects:  56% (51/91)        
remote: Compressing objects:  57% (52/91)        
remote: Compressing objects:  58% (53/91)        
remote: Compressing objects:  59% (54/91)        
remote: Compressing objects:  60% (55/91)        
remote: Compressing objects:  61% (56/91)        
remote: Compressing objects:  62% (57/91)        
remote: Compressing objects:  63% (58/91)        
remote: Compressing objects:  64% (59/91)        
remote: Compressing objects:  65% (60/91)        
remote: Compressing objects:  67% (61/91)        
remote: Compressing objects:  68% (62/91)        
remote: Compressing objects:  69% (63/91)        
remote: Compressing objects:  70% (64/91)        
remote: Compressing objects:  71% (65/91)        
remote: Compressing objects:  72% (66/91)        
remote: Compressing objects:  73% (67/91)        
remote: Compressing objects:  74% (68/91)        
remote: Compressing objects:  75% (69/91)        
remote: Compressing objects:  76% (70/91)        
remote: Compressing objects:  78% (71/91)        
remote: Compressing objects:  79% (72/91)        
remote: Compressing objects:  80% (73/91)        
remote: Compressing objects:  81% (74/91)        
remote: Compressing objects:  82% (75/91)        
remote: Compressing objects:  83% (76/91)        
remote: Compressing objects:  84% (77/91)        
remote: Compressing objects:  85% (78/91)        
remote: Compressing objects:  86% (79/91)        
remote: Compressing objects:  87% (80/91)        
remote: Compressing objects:  89% (81/91)        
remote: Compressing objects:  90% (82/91)        
remote: Compressing objects:  91% (83/91)        
remote: Compressing objects:  92% (84/91)        
remote: Compressing objects:  93% (85/91)        
remote: Compressing objects:  94% (86/91)        
remote: Compressing objects:  95% (87/91)        
remote: Compressing objects:  96% (88/91)        
remote: Compressing objects:  97% (89/91)        
remote: Compressing objects:  98% (90/91)        
remote: Compressing objects: 100% (91/91)        
remote: Compressing objects: 100% (91/91), done.        
Receiving objects:   0% (1/132)
Receiving objects:   1% (2/132)
Receiving objects:   2% (3/132)
Receiving objects:   3% (4/132)
Receiving objects:   4% (6/132)
Receiving objects:   5% (7/132)
Receiving objects:   6% (8/132)
Receiving objects:   7% (10/132)
Receiving objects:   8% (11/132)
Receiving objects:   9% (12/132)
Receiving objects:  10% (14/132)
Receiving objects:  11% (15/132)
Receiving objects:  12% (16/132)
Receiving objects:  13% (18/132)
Receiving objects:  14% (19/132)
Receiving objects:  14% (19/132), 20.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 28.00 KiB | 5.00 KiB/s
Receiving objects:  14% (19/132), 36.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 44.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 52.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 60.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 68.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 84.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 92.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 100.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 108.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 116.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 124.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 132.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 148.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 156.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 164.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 172.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 180.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 188.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 196.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 204.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 212.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 220.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 236.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 244.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 252.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 260.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 268.00 KiB | 4.00 KiB/s
Receiving objects:  14% (19/132), 276.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 284.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 292.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 300.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 308.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 316.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 324.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 340.00 KiB | 1024 bytes/s
Receiving objects:  14% (19/132), 364.00 KiB | 2.00 KiB/s  
Receiving objects:  14% (19/132), 372.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 388.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 396.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 420.00 KiB | 5.00 KiB/s
Receiving objects:  14% (19/132), 436.00 KiB | 5.00 KiB/s
Receiving objects:  14% (19/132), 444.00 KiB | 5.00 KiB/s
Receiving objects:  14% (19/132), 452.00 KiB | 6.00 KiB/s
Receiving objects:  14% (19/132), 460.00 KiB | 6.00 KiB/s
Receiving objects:  14% (19/132), 500.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 508.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 524.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 540.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 564.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 580.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 588.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 596.00 KiB | 2.00 KiB/s
Receiving objects:  14% (19/132), 612.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 620.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 628.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 660.00 KiB | 3.00 KiB/s
Receiving objects:  14% (19/132), 676.00 KiB | 6.00 KiB/s
Receiving objects:  14% (19/132), 684.00 KiB | 8.00 KiB/s
Receiving objects:  14% (19/132), 700.00 KiB | 7.00 KiB/s
Receiving objects:  14% (19/132), 716.00 KiB | 7.00 KiB/s
Receiving objects:  14% (19/132), 724.00 KiB | 7.00 KiB/s
Receiving objects:  14% (19/132), 740.00 KiB | 7.00 KiB/s
Receiving objects:  14% (19/132), 748.00 KiB | 4.00 KiB/s
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
error: 2564 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2661)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2086)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:86)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:608)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:837)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1223)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1301)
	at hudson.scm.SCM.checkout(SCM.java:505)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1204)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:636)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:508)
	at hudson.model.Run.execute(Run.java:1907)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE


Jenkins报错Error cloning remote repo ‘origin’

这行报错只能说明是git有问题,其他没什么有用的信息。
可以参考下https://www.jianshu.com/p/d4783cc73d57

我再看看,这个太难整了 :joy:

大概率是github访问不稳定,你可以换成国内的平台比如码云再试试。

ok

我们公司直接不支持ssh连接,换成http后合适了

我这边是家里的网,应该没事的

关闭