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

问题描述

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
posted @ 2018-04-10 21:30  云原生运维社区  阅读(4436)  评论(0编辑  收藏  举报