Alright, I've been staring at this one for a bit, and I must be missing something obvious, and I'm just not seeing it, so hoping someone can point out what it is :) I'm just trying to figure out how you get at variable values that come from a nested class. What I have is a build result action that looks something like this
*MyTestResultBuildAction.java:* public class MyTestResultBuildAction extends AbstractTestResultAction implements Serializable { protected transient int passCount; protected MyResult myResults; public int getPassCount() { return passCount; } public MyResult getMyResults() { return myResults; } ... } The MyResult object then looks like this: *MyResult.java:* public class MyResult { protected final String name; public String getName() { return name; } ... } Now in my jelly, I just want to get to the "name" variable. I've browsed through some other plug-ins, and tried a few different iterations (only a few of which are below), but I can't seem to get it to work. I "think" that one of the following approaches should get my what I want, but something is a miss. *MyTestResultBuildAction.jelly:* <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout"> <l:layout norefresh="true" title="My Test Results"> <l:main-panel> <j:set var="results" value="${it.myResults}" /> ${results.name} ${it.testResults.name} </l:main-panel> </l:layout> </j:jelly> I know my Jelly is getting picked up as I can do some other things like inserting raw text, and refresh the page and see the change. Additionally, I can get at the "passCount" variable in the Jelly, I just can't get at anything that is a member of the MyResult object. What am I missing here? Also, if anyone has any general tips on how to debug these types of interactions, that would be great to hear as well. Thanks in advance for any help! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f4361a64-f3b0-470c-9bff-30b9207df0d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.