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