Type Casting String to NumberOnlyBuildLabel

13 views
Skip to first unread message

Saurabh Garg

unread,
Jun 6, 2015, 5:57:58 AM6/6/15
to jenkin...@googlegroups.com
Hi I need To typecast String to NumberOnlyBuildLabel to provide its value to DataSetBuilder.
What I have done was as below but I failed  during execution i am getting this exception.
Unable to  cast java.lang.String to hudson.util.ChartUtil$NumberOnlyBuildLabel 

What I am doing Is 

String Build ="121"
Object build=(Object)Build;
Label=(NumberOnlyBuildLabel) build;


Is there any other way around
Reply all
Reply to author
Forward
0 new messages