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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM