In Jelly you have something like:

                <td class="center">${action.result.numberOfAnnotations}
</td>

- action is an instance of AbstractResultAction
- action.result  is a public getter in AbstractResultAction (getResult())
- result is an instance of BuildResult
- result.numberOfAnnotations is a public getter in BuildResult
(getNumberOfAnnotations())

You can use any public method on these objects.

Ulli

On 05/23/2012 08:29 PM, arjun tr wrote:
> I tried looking into analysis core and analysis collector plugin but
> could not understand how the objects are defined for use in jelly and
> groovy. Is there anything I'm missing, I'm new to Jenkins code even
> though I have been using Jenkins for a long time
>
>
> Regards,
> Arjun
>
>
>
> On Wed, May 23, 2012 at 7:41 PM, Slide <slide.o....@gmail.com
> <mailto:slide.o....@gmail.com>> wrote:
>
>     Currently there is a bug in the groovy templating that it does not
>     load/import the Jenkins object model correctly, I am working to fix
>     this. Jelly has no such issue and you can interact with the full
>     Jenkins object model.
>
>     slide
>
>     On Tue, May 22, 2012 at 9:20 PM, arjun tr <arjun200...@gmail.com
>     <mailto:arjun200...@gmail.com>> wrote:
>     > Are there any documentation on the objects and methods available
>     for use in
>     > groovy and jelly scripts in email-ext plugin?
>     >
>     >
>     > Regards,
>     > Arjun
>     >
>     >
>     >
>     > On Tue, May 22, 2012 at 9:53 PM, arjun tr <arjun200...@gmail.com
>     <mailto:arjun200...@gmail.com>> wrote:
>     >>
>     >> sorry, but I tried this in vain. I got some jelly script from some
>     >> stackoverflow which showed how to configure pmd, checkstyle,
>     findbugs
>     >> individually.
>     >>
>     >> It would help if there is some sort of documentation for
>     objects available
>     >> in jelly and groovy scripts
>     >>
>     >> Here is the stackoverflow link
>     >>
>     >>
>     >>
>     
> http://stackoverflow.com/questions/8184944/can-i-configure-jenkins-to-send-an-email-with-a-static-analysis-report-summary
>     >>
>     >>
>     >> Regards,
>     >> Arjun
>     >>
>     >>
>     >>
>     >> On Tue, May 22, 2012 at 3:57 PM, Ullrich Hafner
>     <ullrich.haf...@gmail.com <mailto:ullrich.haf...@gmail.com>>
>     >> wrote:
>     >>>
>     >>> On 05/22/2012 11:49 AM, arjun tr wrote:
>     >>> > I was trying to include short summary of cobertura, pmd,
>     checkstyle,
>     >>> > findbugs reports in emails.
>     >>> > I was able to get configurations for cobertura but not for
>     others with
>     >>> > jelly.
>     >>> > Is there any place which details on the other plugin
>     configurations
>     >>> > and class, method definitions in either jelly or groovy??
>     >>>
>     >>> I added a new template in the latest release of the email-ext
>     plug-in:
>     >>>
>     >>>
>     
> https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/static-analysis.jelly
>     >>>
>     >>> It simply shows the total number of warnings for each of the
>     analysis
>     >>> tools.
>     >>>
>     >>> Ulli
>     >>>
>     >>>
>     >>
>     >
>
>
>
>     --
>     Website: http://earl-of-code.com
>
>

Reply via email to