首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >Jenkins返回状态码128

Jenkins返回状态码128
EN

Stack Overflow用户
提问于 2014-02-12 07:21:30
回答 4查看 41.4K关注 0票数 11

我正在尝试使用BitBucket GIT存储库设置Jenkins,但是Jenkins控制台总是给我这个错误代码:

代码语言:javascript
代码运行次数:0
运行
复制
Started by user Dakado
Building in workspace /var/lib/jenkins/workspace/TEST852
Fetching changes from the remote Git repository
Fetching upstream changes from git://bitbucket.org/GameTeamCZ/gtplaytime.git
FATAL: Failed to fetch from git://bitbucket.org/GameTeamCZ/gtplaytime.git
hudson.plugins.git.GitException: Failed to fetch from git://bitbucket.org/GameTeamCZ/    gtplaytime.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:651)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:560)
at hudson.model.Run.execute(Run.java:1670)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress git://    bitbucket.org/GameTeamCZ/gtplaytime.git +refs/heads/*:refs/remotes/origin/*"     returned status code 128:
stdout: 
stderr: bitbucket.org[0: 131.103.20.167]: errno=Connection timed out
bitbucket.org[0: 131.103.20.168]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1148)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1018)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:74)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:207)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:623)
... 10 more

我尝试过很多不同的方法,但总是失败。我的服务器允许端口9418上的流量。服务器连接速度为1 Gbps。

EN

回答 4

Stack Overflow用户

发布于 2014-06-12 06:32:08

你的问题就在这里:

代码语言:javascript
代码运行次数:0
运行
复制
Fetching upstream changes from git://bitbucket.org/GameTeamCZ/gtplaytime.git
FATAL: Failed to fetch from git://bitbucket.org/GameTeamCZ/gtplaytime.git

您的存储库是公共的还是私有的?如果它是私有的,那么有两种方法可以连接到你的回购:

第一次使用登录名/密码

代码语言:javascript
代码运行次数:0
运行
复制
https://**login:password**@bitbucket.org/GameTeamCZ//gtplaytime.git

第二,使用凭证参考该页面,为您的Jenkins服务器设置凭证:https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git

然后,您可以使用类似的命令登录您的存储库:

代码语言:javascript
代码运行次数:0
运行
复制
git@CREDENTIALS:TEAM/REPO.git
票数 3
EN

Stack Overflow用户

发布于 2019-09-14 04:54:46

这对我很有效:你需要在Bitbucket上创建应用程序密码

(1)进入BitBucket设置->访问管理->应用密码->存储库(在这里选择你想要完成的选项)

(2) Jenkins-> Credentials-> Jenkins -> Global credentials (无限制) -> Add Credentials -> Kind "Username -> password“在此处提供用户名/密码

(3)转到Jenkins Jobs -> GIT ->

存储库URL:https://USER_NAME@bitbucket.org/ABCcompany/myRepo.git Credentials:从刚刚创建的下拉列表中选择

资源: Bitbucket、Jenkins、Selenium、Chrome

票数 2
EN

Stack Overflow用户

发布于 2020-09-23 18:50:27

增加克隆时间对我有效。我的克隆正在终止,因为文件太大,需要更多时间从存储库获取代码,并且默认超时设置为10分钟。因此,将限制从10增加到更长的时间限制对我有效。转到作业>配置>源代码管理>单击添加附加行为>选择高级克隆行为>将‘克隆和获取操作的超时(分钟)’设置为100。并检查深度为1的浅层克隆。在此处检查附加的图像以获得更多清晰度- JENKINS configuration for clone behaviour

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21715345

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档