如何增加本地Gitlab的最大工件大小

时间:2019-08-05 23:39:53

标签: gitlab gitlab-ci

我们已经在本地安装了Gitlab,但是其他人进行了安装,因此我对配置运行器等不甚了解。管道由于以下错误而失败:

Uploading artifacts...
app/build/outputs/apk/debug/app-debug.apk: found 1 matching files
app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: found 1 matching files
ERROR: Uploading artifacts to coordinator... too large archive id=13832 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=fCysmH9H
FATAL: Too large
ERROR: Job failed: exit code 1

我在哪里/如何配置允许的工件大小?

1 个答案:

答案 0 :(得分:2)

找到https://microk8s.io/后,我得以解决问题。它建议增加Gitlab本地实例上的最大工件大小。以下是对我有用的步骤:

  1. 单击“管理区域”(Gitlab本地屏幕的顶部)
  2. 点击设置

    1. 假设本地实例托管在gitlab.MYCOMPANY.com上,则直接链接为:https://gitlab.MYCOMPANY.com/admin/application_settings/ci_cd
  3. 展开“持续集成和部署”

  4. 设置“最大工件大小(MB)”

这是假定您的登录凭据允许您查看“管理区域”。