简体   繁体   English

Jenkins 上的 Groovy:绘图插件

[英]Groovy on Jenkins: Plot plugin

I currently have a Groovy script running on Jenkins that generates XML report files.我目前有一个在 Jenkins 上运行的 Groovy 脚本,用于生成 XML 报告文件。 The goal is to have the data presented to the user in plots.目标是将数据以图表形式呈现给用户。

So far I've been using the plot plugin post-build option on Jenkins to do this but would like to automate it.到目前为止,我一直在 Jenkins 上使用 plot plugin post-build 选项来执行此操作,但希望将其自动化。 I've been looking for information on how to do this with my Groovy script but can't find anything.我一直在寻找有关如何使用我的 Groovy 脚本执行此操作的信息,但找不到任何内容。

A short sample of the XML would be: XML 的一个简短示例是:

<?xml version="1.0"?>
 <xmllog>
  <asicbuilduser> 44.5 </asicbuilduser>
 </xmllog>

The XPath Expression is xmllog/* and the XPath Result type is Nodeset XPath Expressionxmllog/*XPath Result typeNodeset

事实证明,在 Jenkins 中使用带有 Groovy 代码的绘图的方法是使用 Pipeline 项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM