Jenkins返回了状态码128

编程入门 行业动态 更新时间:2024-10-20 00:28:04
本文介绍了Jenkins返回了状态码128的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用BitBucket GIT存储库设置Jenkins,但Jenkins控制台始终会向我显示此错误代码:

I am trying to setup Jenkins with BitBucket GIT repository, but the Jenkins console always gives me this error code:

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/GameTeamCZ/gtplaytime.git FATAL: Failed to fetch from git://bitbucket/GameTeamCZ/gtplaytime.git hudson.plugins.git.GitException: Failed to fetch from git://bitbucket/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/GameTeamCZ/gtplaytime.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: bitbucket[0: 131.103.20.167]: errno=Connection timed out bitbucket[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连接.

I have tried it many different ways but it always fails. Traffic on port 9418 is allowed on my server. Server is on 1 Gbps connection.

推荐答案

您的问题就在这里:

Fetching upstream changes from git://bitbucket/GameTeamCZ/gtplaytime.git FATAL: Failed to fetch from git://bitbucket/GameTeamCZ/gtplaytime.git

您的存储库是公共的还是私有的? 如果是私有的,则有两种方法可以连接到您的Repo:

Is your repository public or private ? If it is private, then there is 2 ways to connect to your Repo :

首先使用登录名/密码

**login:password**@bitbucket/GameTeamCZ//gtplaytime.git

第二次使用CREDENTIALS 请参阅该页面来设置您的Jenkins服务器的凭据: confluence.atlassian/display/BITBUCKET/Set+up+SSH+for+Git

Second using CREDENTIALS Refer to that page to setup credentials for your Jenkins server : confluence.atlassian/display/BITBUCKET/Set+up+SSH+for+Git

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

Then you can use a command like that to login to your repository:

git@CREDENTIALS:TEAM/REPO.git

更多推荐

Jenkins返回了状态码128

本文发布于:2023-11-17 12:16:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609974.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   Jenkins

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!