如何增加本地 Gitlab 的最大工件大小 [英] How to increase maximum artifacts size for Gitlab on-premises
问题描述
我们已经在本地安装了 Gitlab,但是其他人进行了安装,所以我对配置运行器等不太了解.由于以下错误,管道失败:
We've installed Gitlab on-premises, however someone else did the installation so I don't know as much about configuring the runners, etc. A pipeline failed due to the following error:
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
在哪里/如何配置允许的工件大小?
Where/how do I configure the allowable artifact size?
推荐答案
找到https://gitlab.com/gitlab-org/gitlab-runner/issues/2584.它建议在 Gitlab 的本地实例上增加最大工件大小.以下是对我有用的步骤:
I was able to solve my problem after finding https://gitlab.com/gitlab-org/gitlab-runner/issues/2584. It suggests increasing maximum artifacts size on the on-prem instance of Gitlab. Here are the steps that worked for me:
- 点击管理区域(Gitlab 本地屏幕顶部)
点击设置
- Click Admin Area (top of Gitlab on-prem screen)
Click Settings
- 假设本地实例托管在 gitlab.MYCOMPANY.com,直接链接是:
https://gitlab.MYCOMPANY.com/admin/application_settings/ci_cd
扩展持续集成和部署"
Expand "Continuous Integration and Deployment"
这假设您的登录凭据允许您查看管理区域.
This assumes your login credentials allow you to see the Admin Area.
这篇关于如何增加本地 Gitlab 的最大工件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!