down votefavorite
<http://stackoverflow.com/questions/39399774/how-can-i-reference-full-qualified-class-name-in-jenkins-jelly-file#>
In Jenkins jelly file, I have need to use java class object from class name.
<j:set var="myProperty" value="${job.getProperty(MyProperty.class)}" />
MyProperty is my custom JobProperty class, which is applied to job However,
the above line will not work properly, even I tried
<j:set var="myClass" value="${MyProperty.class}" />
or
<j:set var="myClass" value="${full.qualified.class.MyProperty.class}" />
myClass object will always been null.
How I can use class object from jelly?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/29a9c751-ed6f-4125-b2d7-3963ed85ab22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.