将 Jenkins 报告导出到 Excel [英] Export Jenkins reports to Excel

查看:38
本文介绍了将 Jenkins 报告导出到 Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是詹金斯的新手.我们让 jenkins 每晚启动几个构建,我想从所有构建中提取失败并将它们放入 excel(或 google dox 版本的 excel)中.有什么聪明的方法可以做到这一点吗?谢谢

I am new to Jenkins. We have jenkins kicking off several builds every night and I want to pull the failures out from all builds and put them into excel (or google dox version of excel). Is there any smart way to do this? Thanks

推荐答案

既然 Jenkins 集成了用于流水线构建的 Groovy,或者只是简单的 Groovy 脚本,那么编写一些使用 Apache POI 库的 Groovy 代码来创建一个真正的带有颜色、字体、突出显示或您需要的任何内容的 Excel 电子表格.

Now that Jenkins integrates Groovy for Pipeline builds, or just plain Groovy scripts, it is straightforward to write some Groovy code that uses the Apache POI libraries to create a genuine Excel spreadsheet with colors, fonts, highlights or whatever you need.

这篇关于将 Jenkins 报告导出到 Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆