Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要求:从 Jenkins 工作区,我需要读取测试结果文件(.TRX 或 .xml)并进一步解析它以获取测试数据以创建一些分析。
现在,我已将结果文件复制到我的本地文件夹中,并且可以使用 Python 读取和解析该文件。
我的问题是,我们可以直接从 Jenkins 读取文件吗?
是的你可以。这是一个带有 yaml 文件的示例,但它也适用于 xml(我相信 readXml):
config = readYaml (file: 'config.yaml') println config println config.thatever