How to convert String to NumberOnlyBuildLabel

24 views
Skip to first unread message

Saurabh Garg

unread,
Jun 8, 2015, 7:23:34 AM6/8/15
to jenkin...@googlegroups.com
How can I create a trend chart in my application. as we make in jacoco plugin,testng pluggin etc. 
I am parsing an xml for values which are in string or integer format. But The values are required in datasetbuilder as DataSetBuilder<String, NumberOnlyBuildLabel>, first string is ok. what shall i do for NumberOnlyBuildLabel . how to convert String or integer value to object of this very class.


Is there any other way to create graph in jenkins 

Ullrich Hafner

unread,
Jun 8, 2015, 12:59:42 PM6/8/15
to jenkin...@googlegroups.com
Did you look at any of the existing graphs?

You need to add values in the following way:

DataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();
[...]
builder.add(value, rowAsString, new NumberOnlyBuildLabel(build));



--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/cd8a1056-e656-4661-9e70-84563a4dac7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Saurabh Garg

unread,
Jun 10, 2015, 6:40:51 AM6/10/15
to jenkin...@googlegroups.com
I know this from starting . I have studied the two plugins i mentioned. then only i am asking this question Because i am getting values as strings and integers only 
Reply all
Reply to author
Forward
0 new messages