简体   繁体   中英

Groovy on Jenkins: Plot plugin

I currently have a Groovy script running on Jenkins that generates XML report files. 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. I've been looking for information on how to do this with my Groovy script but can't find anything.

A short sample of the XML would be:

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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