码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-04-10 23:58:59      阅读:1605      评论:0      收藏:0      [点我收藏+]

标签:limit   restart   tput   output   shell   日志   默认   tor   inter   

问题描述

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

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

标签:limit   restart   tput   output   shell   日志   默认   tor   inter   

原文地址:https://www.cnblogs.com/baishuchao/p/8783179.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!