gitlab pipelines job执行时日志较大报错

来源:互联网 发布:人体工学椅有用吗 知乎 编辑:程序博客网 时间:2024/05/22 09:02

问题描述

gitlab pipelines job执行时日志较大报错

Job's log exceeded limit of 4194304 bytes.

解决方案

出现该问题主要是因为gitlab runner默认日志大小为4096,修改相关配置即可

1.修改gitlab runner配置/etc/gitlab-runner/config.toml

concurrent = 1check_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
阅读全文
0 0
原创粉丝点击