gitlab-runner默認的控制台日志輸出的最大長度是4096,實際情況中難免會超出,如果有需要可以在config.toml中添加output_limit=[數字]
配置字段來調整日志輸出最大長度:
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "xxxx"
url = "xxxx"
token = "xxxx"
executor = "shell"
output_limit = 8192
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
然后重啟gitlab-runner即可生效。