Gitlab CI/CD 作业的日志超出限制 [英] Gitlab CI/CD job's log exceeded limit

查看:26
本文介绍了Gitlab CI/CD 作业的日志超出限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 Gitlab CI/CD 上运行我的作业时,一段时间后我收到以下错误消息:

作业的日志超出了 4194304 字节的限制.

如何更改此限制?

解决方案

要在 Gitlab CI/CD 中更改作业的构建日志大小,您可以编辑您的 config.toml 文件并添加以千字节为单位的新限制:

[[runners]]输出限制 = 10000

根据文档p><块引用>

output_limit : 以千字节为单位设置最大构建日志大小,默认设置为 4096 (4MB)

要让它生效,你需要重启 gitlab runner:

sudo gitlab-runner 重启

When I run my job on Gitlab CI/CD, after a while I obtain the following error message:

Job's log exceeded limit of 4194304 bytes.

How to change this limit?

解决方案

To change the build log size of your jobs in Gitlab CI/CD, you can edit your config.toml file and add a new limit in kilobytes:

[[runners]]
  output_limit = 10000

According to the documentation

output_limit : Set maximum build log size in kilobytes, by default set to 4096 (4MB)

For this to take effect, you need to restart the gitlab runner:

sudo gitlab-runner restart

这篇关于Gitlab CI/CD 作业的日志超出限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆