Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8684459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:18:45+00:00 2026-06-12T22:18:45+00:00

I’m trying to use Jenkins’ Plot plugin to generate a graph of how many

  • 0

I’m trying to use Jenkins’ Plot plugin to generate a graph of how many “TODO” markers we have in our code.

I have an XML file being generated as part of the build which includes data about them (among other things): each TODO marker has a line in the XML which looks like this:

<tag line="3" name="todo" description="Do something with this"/>

Using a stand-alone xpath tool, I can use an expression //tag[@name='todo'] to get all the matching elements, or count(//tag[@name='todo']) to just get the number of them.

This count is the value I want to plot. However I’ve been unable to get any data onto a chart in Jenkins.

I’ve created the plot and specified that it’s an XML file. Jenkins then asks me if the result will be a Nodeset, Node, String, Boolean or Number.

I assume “Nodeset” would be applicable to //tag[@name='todo'] and “Number” to count(//tag[@name='todo']). But I’ve tried them both, and both of them just give me an empty graph, with no data plotted on it.

The most frustrating thing of all is that Jenkins doesn’t give me any feedback on what the problem is; just the empty graph. Nothing in the build log, or anywhere else I can see.

Can anyone help me get this working? I can’t find any examples anywhere. It seems like it ought to be simple, but it’s just not happening for me.

Thanks in advance.

[EDIT]

A larger sample of the XML, as requested in the comments:

<?xml version="1.0" encoding="utf-8"?>
<project>
  <method>
    <docblock>
      <tag line="763" name="todo" description="This needs doing"/>
    </docblock>
  </method>
  <method>
    <docblock>
      <tag line="14" name="todo" description="This also needs doing"/>
    </docblock>
  </method>
</project>

(I’ve snipped out elements and attributes that aren’t relevant, but this is the basic structure)

So as far as I can tell, there isn’t any XML namespacing going on there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:18:47+00:00Added an answer on June 12, 2026 at 10:18 pm

    What I finally achieved to make work is the following :

    I generate a report file with the following datas :

    <report>
      <serie1>10</serie1>
      <serie2>20</serie2>
      <serie3>30</serie3>
    </report>
    

    Then I configure my plot with the following configuration :

     XPath Result type : Nodeset
     XPath Expression : /report/*
    

    Then I get a correct plotting of my datum : the series names are taken from the element name (serie1, serie2…) and the value is taken from the text content.
    Indeed, this is what was explained in the help block :

     (...)
     If a nodeset is selected, a point for each node that is selected will be plotted.
     The label of each point is the name of the element that was selected, the value is the text value. 
    

    I don’t think that this plugin is capable of taking values from XML attributes. Maybe you should consider writing a simple XSLT stylesheet which will transform your file to another one with the expected format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I am trying to loop through a bunch of documents I have to put
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.