This is the result of the output with the debugging lines:
This is the result of the output with the debugging lines:
it=hudson.model.FreeStyleProject@3d2a58[dummy2]
it.myCustomPermission=

I'm kinda lost. I thought 'it' was supposed to be an instance of
MyCustomNotifier.
So that's why it can't find the method I added to MyCustomNotifier.
How can I refer my own Permission object from within jelly?



On Wed, Aug 15, 2012 at 4:30 PM, Jesse Glick <[email protected]> wrote:

> On 08/15/2012 03:25 PM, Nicky Ramone wrote:
>
>> I'm not clear on what 'app' is, although it looks like the Jenkins object.
>>
>
> Right.
>
>
>  I have defined the getMyCustomPermission() method, but it doesn't work.
>>
>> Maybe the 'it' variable is not correctly parsed when being inside ${h...}?
>>
>
> It ought to work. 'it' will be bound to whatever object is the "subject"
> of the page, so make sure getMyCustomPermission is defined in the right
> class. Try inserting some debugging fragments:
>
> it=<j:out value="${it}"/>
> it.myCustomPermission=<j:out value="${it.**myCustomPermission}"/>
>

Reply via email to