gpt4 book ai didi

Jenkins 返回状态码 128

转载 作者:行者123 更新时间:2023-12-04 04:35:04 26 4
gpt4 key购买 nike

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

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 连接。

最佳答案

所以几个月来我一直在努力解决这个问题。在找到这个线程之后,我终于成功地拉动并构建了。
我的解决方案。我更改了我的设置,不再尝试使用 SSH 拉取,而是使用了 Mike ASP 的建议。我使用用户名/密码作为全局凭据。
尝试使用 SSH 拉取的配置中可能缺少一个步骤。但是用户名和密码就像一个魅力。

关于 Jenkins 返回状态码 128,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21715345/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com