【问题标题】:Jenkins fails while copying the repo despite correct credentials尽管凭据正确,Jenkins 在复制 repo 时失败
【发布时间】:2020-09-19 22:37:40
【问题描述】:

不幸的是,我的构建每次都失败。

复制过程显然总是应该失败的。 但是 Jenkins 上的这个用户对 repo 有 100% 的访问权限。 我可以 100% 排除这个错误。

有谁知道是什么原因造成的?

        using GIT_ASKPASS to set credentials for Bitbucket Notifier plugin and Nexus service
     > git.exe fetch --tags --progress -- https://URL/bitbucket/test.git +refs/heads/*:refs/remotes/origin/* # timeout=10
    ERROR: Timeout after 10 minutes
    ERROR: Error fetching remote repo 'origin'
   ....
    stderr: Logon failed, use ctrl+c to cancel basic credential prompt.
    remote: Counting objects: 1           
    remote: Counting objects: 4198, done.        
    remote: Compressing objects:   0% (1/2939)           
    ...          
    remote: Compressing objects:  99% (2935/2939)           

    ...
    Finished: FAILURE

谢谢。

【问题讨论】:

    标签: jenkins build bitbucket


    【解决方案1】:

    问题就在这里:

    错误:10 分钟后超时

    错误:获取远程 repo 'origin' 时出错

    您需要做的是,更新您的 SCM 配置,您已在其中记录了 Bitbucket Repo 详细信息。会有一个“超时”设置,如果我没记错的话默认设置为10。

    你可以把它留空,这样就不会发生超时。

    【讨论】:

    • 您认为出现错误是因为复制时间超过 10 分钟,然后出现超时吗?
    • 是的,有多种原因。不正确的凭据,非常大的存储库,网络问题/带宽问题等。当 Git 服务器完全托管在与特定 Jenkins 从属服务器不同的区域时,我遇到了同样的问题。
    猜你喜欢
    • 2022-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-11
    • 2012-11-29
    • 1970-01-01
    • 2012-12-25
    相关资源
    最近更新 更多