問題描述
gitlab pipelines job執行時日志較大報錯
Job's log exceeded limit of 4194304 bytes.
解決方案
出現該問題主要是因為gitlab runner默認日志大小為4096,修改相關配置即可
1.修改gitlab runner配置/etc/gitlab-runner/config.toml
concurrent = 1
check_interval = 0
[[runners]]
name = "ci"
url = "http://git.***.org/"
token = "6f20e039115b404f4ff88fb4633fd7"
executor = "shell"
builds_dir = "/mdata/builds"
# 此行為新增行,默認配置為4096
output_limit = 8192
[runners.cache]
2.重啟gitlab runner
gitlab-runner restart