【问题标题】:Jenkins git plugin getting status code 128 with bitbucketJenkins git插件使用bitbucket获取状态码128
【发布时间】:2019-12-06 21:02:10
【问题描述】:

有时当 jenkins 尝试从 bitbucket 签出 repo 时,它会给我错误 128..

我使用 SSH 密钥进行身份验证,并且大部分时间它都可以工作.. 但是有一段时间我会收到这个错误..

> Fetching upstream changes from
> git@bitbucket.org:team/myCoreRepo.git
>  > C:\Program Files\Git\bin\git.exe --version # timeout=10
>  > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress git@bitbucket.org:team/myCoreRepo.git
> +refs/heads/*:refs/remotes/origin/* # timeout=10
>  > C:\Program Files\Git\bin\git.exe config remote.origin.url git@bitbucket.org:team/myCoreRepo.git # timeout=10
>  > C:\Program Files\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
>  > C:\Program Files\Git\bin\git.exe config remote.origin.url git@bitbucket.org:team/myCoreRepo.git # timeout=10 Fetching
> upstream changes from git@bitbucket.org:team/myCoreRepo.git
>  > C:\Program Files\Git\bin\git.exe fetch --tags --force --progress git@bitbucket.org:team/myCoreRepo.git
> +refs/heads/*:refs/remotes/origin/* # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch
> from git@bitbucket.org:team/myCoreRepo.git    at
> hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:904)  at
> hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1144)   at
> hudson.plugins.git.GitSCM.checkout(GitSCM.java:1175)  at
> org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:143)
>   at hudson.scm.SCM.checkout(SCM.java:504)    at
> hudson.model.AbstractProject.checkout(AbstractProject.java:1208)  at
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
>   at
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
>   at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
>   at hudson.model.Run.execute(Run.java:1816)  at
> hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)   at
> hudson.model.ResourceController.execute(ResourceController.java:97)
>   at hudson.model.Executor.run(Executor.java:429) Caused by:
> hudson.plugins.git.GitException: Command "C:\Program
> Files\Git\bin\git.exe fetch --tags --force --progress
> git@bitbucket.org:team/myCoreRepo.git
> +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout:  stderr: Connection closed by 18.205.93.2 port 22 fatal: Could not read
> from remote repository.
> 
> Please make sure you have the correct access rights and the repository
> exists.

【问题讨论】:

    标签: jenkins bitbucket jenkins-plugins


    【解决方案1】:

    当 Jenkins 磁盘空间不足时,我们也看到了这种行为。 所以你可能想检查一下。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-17
      • 2016-03-28
      • 1970-01-01
      • 1970-01-01
      • 2014-12-25
      • 2017-12-14
      • 2022-12-14
      • 1970-01-01
      相关资源
      最近更新 更多