从 jenkins 管道语法增加 git 超时
Increase git timeout from jenkins pipeline syntax
每次在下载另一个存储库时执行我的管道语法命令时,我都会收到这些消息:
ERROR: Timeout after 10 minutes
ERROR: Error cloning remote repo 'origin
Receiving objects: 77% (6819/8789), 239.50 MiB | 418.00 KiB/s
Killed by signal 15.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
我已经尝试了这两个 jenkins 自动生成的管道语法,但是仍然无法完全下载 repo
git credentialsId: 'user-key', url: 'ssh://git@enterprise-bitbucket.mycompany.net:8000/poject/job.git'
git changelog: false, credentialsId: 'user-key', poll: false, url: 'ssh://git@enterprise-bitbucket.mycompany.net:8000/poject/job.git'
我正在考虑测试并将默认超时从 10 分钟增加到 30,但是没有从 jenkins 管道语法中添加它的选项。
关于如何增加超时值的任何建议?提前致谢
我认为需要更改的 os 的 ssh 配置不在其中。尽管我通过更新我们的 jenkins 管道语法在某种程度上解决了这个问题:
checkout([$class: 'GitSCM',
branches: [[name: 'master']],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanBeforeCheckout'], [$class: 'CloneOption', depth: 1, noTags: false, reference: '', shallow: true, timeout: 240]],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'user-key', url: 'ssh://git@enterprise-bitbucket.mycompany.net:8000/poject/job.git']]
])
为了更高的超时,我将其设置为 240 (我通过 google 搜索在其他地方看到的其他设置)
:-)
每次在下载另一个存储库时执行我的管道语法命令时,我都会收到这些消息:
ERROR: Timeout after 10 minutes
ERROR: Error cloning remote repo 'origin
Receiving objects: 77% (6819/8789), 239.50 MiB | 418.00 KiB/s
Killed by signal 15.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
我已经尝试了这两个 jenkins 自动生成的管道语法,但是仍然无法完全下载 repo
git credentialsId: 'user-key', url: 'ssh://git@enterprise-bitbucket.mycompany.net:8000/poject/job.git'
git changelog: false, credentialsId: 'user-key', poll: false, url: 'ssh://git@enterprise-bitbucket.mycompany.net:8000/poject/job.git'
我正在考虑测试并将默认超时从 10 分钟增加到 30,但是没有从 jenkins 管道语法中添加它的选项。
关于如何增加超时值的任何建议?提前致谢
我认为需要更改的 os 的 ssh 配置不在其中。尽管我通过更新我们的 jenkins 管道语法在某种程度上解决了这个问题:
checkout([$class: 'GitSCM',
branches: [[name: 'master']],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanBeforeCheckout'], [$class: 'CloneOption', depth: 1, noTags: false, reference: '', shallow: true, timeout: 240]],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'user-key', url: 'ssh://git@enterprise-bitbucket.mycompany.net:8000/poject/job.git']]
])
为了更高的超时,我将其设置为 240 (我通过 google 搜索在其他地方看到的其他设置)
:-)