Jenkins pipeline 詹金斯·吉特·普利金慢结帐

Jenkins pipeline 詹金斯·吉特·普利金慢结帐,jenkins-pipeline,jenkins-git-plugin,Jenkins Pipeline,Jenkins Git Plugin,我正在使用IBM的LSF工作负载管理平台将Jenkins之外的内容克隆到某个共享文件夹中 或者假设我从命令行手动克隆 然后,我想使用GIT插件获取更新的更改(提交)和签出分支 它可以工作,但需要与完全克隆相同的时间。意味着需要5-7分钟,而不是20秒 你能解释一下这种行为吗?我怎么办 从命令行创建的本地存储库功能齐全。我想在20秒内结帐 多谢各位 代码: Log(我添加了调试变量hudson.plugins.git.GitSCM.verbose=true)。结帐时间为6分钟: 10:40:29

我正在使用IBM的LSF工作负载管理平台将Jenkins之外的内容克隆到某个共享文件夹中

或者假设我从命令行手动克隆

然后,我想使用GIT插件获取更新的更改(提交)和签出分支

它可以工作,但需要与完全克隆相同的时间。意味着需要5-7分钟,而不是20秒

你能解释一下这种行为吗?我怎么办

从命令行创建的本地存储库功能齐全。我想在20秒内结帐

多谢各位

代码:

Log(我添加了调试变量hudson.plugins.git.GitSCM.verbose=true)。结帐时间为6分钟:

10:40:29  Using checkout strategy: Default
10:40:29  Last Built Revision: Revision 7588941db5123456975ff1234567ef8733f20b0b (origin/develop)
10:40:29  The recommended git tool is: NONE
10:40:29  using credential f76306ee-b3d1-4169-9582-123467
10:40:29  Fetching changes from the remote Git repository
10:40:28   > git rev-parse --is-inside-work-tree # timeout=10
10:40:28   > git config remote.origin.url <removed_remote_URL> # timeout=10
10:40:28  Fetching upstream changes from <removed_remote_URL>
10:40:28   > git --version # timeout=10
10:40:28   > git --version # 'git version 2.28.1'
10:40:28  using GIT_ASKPASS to set credentials SIRC DevOps
10:40:28   > git fetch --tags --progress -- git@gitlab-srv:CDE-Users/HW_ALG.git +refs/heads/*:refs/remotes/origin/* # timeout=10
10:40:31  getCandidateRevisions(false,develop,,,hudson.plugins.git.util.BuildData@18b394fa[scmName=<null>,remoteUrls=[<removed_remote_URL>],buildsByBranchName={origin/develop=Build #31 of Revision 7588941db57d8597975ff98bb3d7ef8733f20b0b (origin/develop)},lastBuild=Build #31 of Revision 7588941db57d8597975ff98bb3d7ef8733f20b0b (origin/develop)]) considering branches to build
10:40:31  Qualifying develop as a branch in repository origin -> origin/develop
10:40:31  rev-parse origin/develop -> AnyObjectId[7588941db5123456975ff1234567ef8733f20b0b]
10:40:31  Found a new commit AnyObjectId[7588941db5123456975ff1234567ef8733f20b0b] to be built on origin/develop
10:40:31  Checking out Revision 7588941db5123456975ff1234567ef8733f20b0b (origin/develop)
10:40:30   > git rev-parse origin/develop^{commit} # timeout=10
10:40:30   > git config core.sparsecheckout # timeout=10
10:40:30   > git checkout -f 7588941db5123456975ff1234567ef8733f20b0b # timeout=25
10:46:37  Commit message: "Merge branch '__branch_name_removed__' into 'develop'"
10:46:36   > git rev-list --no-walk 7588941db5123456975ff1234567ef8733f20b0b # timeout=10
10:40:29使用签出策略:默认值
10:40:29最新版本:版本7588941db5123456975ff1234567ef8733f20b0b(原始/开发)
10:40:29推荐的git工具是:无
10:40:29使用凭证f76306ee-b3d1-4169-9582-123467
10:40:29从远程Git存储库获取更改
10:40:28>git rev parse——在工作树中#timeout=10
10:40:28>git config remote.origin.url#timeout=10
10:40:28从中获取上游更改
10:40:28>git--version#timeout=10
10:40:28>git--版本#“git版本2.28.1”
10:40:28使用GIT_ASKPASS设置凭据SIRC DevOps
10:40:28>git fetch--标记--进度--git@gitlab-srv:CDE-Users/HW_-ALG.git+refs/heads/*:refs/remotes/origin/*#timeout=10
10:40:31 GetCandidateReservisions(false,develope,,,hudson.plugins.git.util。BuildData@18b394fa[scmName=,RemoteURL=[],buildsByBranchName={origin/develope=Build#第31版7588941DB57D85975FF98BB3D7EF8733F20B0B(origin/develope)},lastBuild=Build#第31版7588941DB57D85975FF98BB3D7EF8733F20B0B(origin/develope)]考虑建立分支机构
10:40:31在存储库源代码->源代码/开发中确定开发为分支
10:40:31版本解析源代码/开发->AnyObjectId[7588941DB51234569775FF1234567EF8733F20B0B]
10:40:31发现一个新的commit AnyObjectId[7588941db5123456975ff1234567ef8733f20b0b]要在origin/Developer上构建
10:40:31检查版本7588941DB51234569775FF1234567EF8733F20B0B(原始/开发)
10:40:30>git rev解析源代码/开发^{commit}#超时=10
10:40:30>git config core.sparsecheckout#timeout=10
10:40:30>git签出-f 7588941db5123456975ff1234567ef8733f20b0b#超时=25
10:46:37提交消息:“合并分支”\uuuuu分支名称\uu已删除\uuuuuu“到“开发”中”
10:46:36>git版本列表--无漫游7588941db5123456975ff1234567ef8733f20b0b#超时=10
环境:操作系统Linux。Git作为Docker容器运行

在以下版本上测试:

Jenkins 2.164.1 git插件3.9.3和 Jenkins 2.263.1 git插件4.5.1

10:40:29  Using checkout strategy: Default
10:40:29  Last Built Revision: Revision 7588941db5123456975ff1234567ef8733f20b0b (origin/develop)
10:40:29  The recommended git tool is: NONE
10:40:29  using credential f76306ee-b3d1-4169-9582-123467
10:40:29  Fetching changes from the remote Git repository
10:40:28   > git rev-parse --is-inside-work-tree # timeout=10
10:40:28   > git config remote.origin.url <removed_remote_URL> # timeout=10
10:40:28  Fetching upstream changes from <removed_remote_URL>
10:40:28   > git --version # timeout=10
10:40:28   > git --version # 'git version 2.28.1'
10:40:28  using GIT_ASKPASS to set credentials SIRC DevOps
10:40:28   > git fetch --tags --progress -- git@gitlab-srv:CDE-Users/HW_ALG.git +refs/heads/*:refs/remotes/origin/* # timeout=10
10:40:31  getCandidateRevisions(false,develop,,,hudson.plugins.git.util.BuildData@18b394fa[scmName=<null>,remoteUrls=[<removed_remote_URL>],buildsByBranchName={origin/develop=Build #31 of Revision 7588941db57d8597975ff98bb3d7ef8733f20b0b (origin/develop)},lastBuild=Build #31 of Revision 7588941db57d8597975ff98bb3d7ef8733f20b0b (origin/develop)]) considering branches to build
10:40:31  Qualifying develop as a branch in repository origin -> origin/develop
10:40:31  rev-parse origin/develop -> AnyObjectId[7588941db5123456975ff1234567ef8733f20b0b]
10:40:31  Found a new commit AnyObjectId[7588941db5123456975ff1234567ef8733f20b0b] to be built on origin/develop
10:40:31  Checking out Revision 7588941db5123456975ff1234567ef8733f20b0b (origin/develop)
10:40:30   > git rev-parse origin/develop^{commit} # timeout=10
10:40:30   > git config core.sparsecheckout # timeout=10
10:40:30   > git checkout -f 7588941db5123456975ff1234567ef8733f20b0b # timeout=25
10:46:37  Commit message: "Merge branch '__branch_name_removed__' into 'develop'"
10:46:36   > git rev-list --no-walk 7588941db5123456975ff1234567ef8733f20b0b # timeout=10