gpt4 book ai didi

git - ERROR : Error fetching remote repo 'origin' , 返回状态码-1:

转载 作者:行者123 更新时间:2023-12-04 16:47:34 25 4
gpt4 key购买 nike

我在 Windows 上运行 Jenkins,当我尝试通过 jenkins 构建我的项目时,出现以下错误:

git.exe -c core.askpass=true fetch --tags --progress <url>Assist-Ops.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
> git.exe config --local --remove-section credential # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from <url>
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)


at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Command "git.exe -c core.askpass=true fetch --tags --progress <URL>/Assist-Ops.git +refs/heads/*:refs/remotes/origin/*" returned status code -1:
stdout:
stderr:
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)

我更改密码后开始出现此错误。
我创建了新的 SSH key 并将其添加到 github 存储库。我能够克隆存储库并通过命令行构建。

    mvn clean install

最佳答案

尝试使用 git config --global --unset credential.helper 禁用 git 凭据缓存。如果已在系统配置文件中设置,您可能还需要执行 git config --system --unset credential.helper

关于git - ERROR : Error fetching remote repo 'origin' , 返回状态码-1:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37406323/

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