linux - Jenkins 构建日志太大

标签 linux jenkins solaris

我在 Jenkins 中有一些工作创建了 300MB 大的日志,每个。 构建的日志是在我的 Solaris M6 机器上创建的。

事实:我不能因为业务流程而影响我的工作,它必须保持原样。

My question : How to maintain such huge logs?

Is there any way that Jenkins perhaps knows how to ZIP the logs by himself and then UNZIP it when my user tries to read the Console Output (the logs itself via Jenkins) ?

因为如果我在 Solaris 上手动压缩日志,它将无法再通过 Jenkins 读取。

最佳答案

我发现 Hudson (Jenkins) 支持 .gz 格式,这意味着您可以 gzip 所有日志,Jenkins 仍然可以读取它们,这太棒了!通过这种方式,我节省了大量 GB 的存储空间,并将我的 600MB 日志缩减为仅 2MB,太棒了。

关于linux - Jenkins 构建日志太大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45074989/

相关文章:

c - 如何在 CMake 中使用特定的链接脚本(*.lds)?

node.js - Jenkins 中没有安装 NodeJS

bash - nawk 将列添加到每一行

solaris - Solaris 上的硬盘设备名称

python - 将行与匹配的键组合起来

linux - USB 网络是如何工作的

linux - 如何将 tiff 图像编译为单个文本文件中的 xyz 坐标?

bash - 在 Jenkins 上采购软件集合 (SCL)

linux - Jenkins API 不工作 - "Empty reply from server"

linux - perl 内存不足错误