我们使用以下方法实现了管道:
GitLab 12.8.5
GitLab Shell11.0.0
GitLab Workhorsev8.21.0
GitLab APIv4
GitLab Pages1.16.0
Ruby2.6.5p114
Rails6.0.2
PostgreSQL10.12
还有版本 15.8.1 的 AWS Runner,在 Ubuntu 上运行。 最近,当我们尝试执行管道时,每次都会出现以下消息:
:prepare (Thread[Daemon worker,5,main]) completed. Took 0.565 secs.
[145](https://git.company.com/project-group/project/-/jobs/454518#L145) FAILURE: Build failed with an exception.
[146](https://git.company.com/project-group/project/-/jobs/454518#L146) * What went wrong:
[147](https://git.company.com/project-group/project/-/jobs/454518#L147) Execution failed for task ':prepare'.
[148](https://git.company.com/project-group/project/-/jobs/454518#L148) > org.eclipse.jgit.api.errors.TransportException: **Missing delta base 4cc4be5f642dacedaf5b7bd6e840856355e703a4**
[149](https://git.company.com/project-group/project/-/jobs/454518#L149) * Try:
[150](https://git.company.com/project-group/project/-/jobs/454518#L150) Run with --debug option to get more log output. Run with --scan to get full insights.
即使我们回滚更改后,同样的问题仍然出现。
目前,我们已经尝试过但没有成功:
这是管道失败的步骤:
.publish: &publish
before_script:
- mkdir -p /root/.gradle
- export GRADLE_USER_HOME="/root/.gradle"
- ls -la
stage: publish
script:
- ./gradlew clean
- ./gradlew build --debug --info --stacktrace -Prelease.useLastTag=true
after_script:
- ls
- ls build/libs
artifacts: *jars
之前和之后脚本中的 ls 命令成功返回了文件夹中的文件列表,并且大小与我们在本地 PC 上可以获得的大小匹配。
此外,我们注意到,缺失的增量基本哈希 (4cc4be5f642dacedaf5b7bd6e840856355e703a4) 始终是相同的。
对于我们可能会遗漏的东西有什么想法吗?