build is the AbstractBuild item, you can see the JavaDoc at [1] for it.
 You'd need to read up on how to access the environment variables for the
AbstractBuild and convert that into Jelly.

I've been recommending to people that they move away from Jelly to Groovy
templates, they are much easier to do stuff with (you can use ${ENV(var:
"SVN_URL")} inside the groovy template.

1 - http://javadoc.jenkins-ci.org/hudson/model/AbstractBuild.html


On Fri, Jun 28, 2013 at 10:14 AM, Kamal Ahmed <kamal2222ah...@yahoo.com>wrote:

> I can get the Subversion Repo URL, for the Job as:
> Subversion URL: ${ENV, var="SVN_URL"}
>
> But, is it possible to have the same in jelly script, like "build.svn_url"
> so i can display it as part of the email with the same fonts, etc
>
>  <TR>
>         <TD>Project:</TD>
>         <TD>${project.name}</TD>
>       </TR>
>       <TR>
>         <TD>Date of build:</TD>
>         <TD>${it.timestampString}</TD>
>       </TR>
>       <TR>
>         <TD>Build duration:</TD>
>         <TD>${build.durationString}</TD>
>       </TR>
>       <TR>
>       <!-- BRANCH -->
>         <TD>Subversion Repo:</TD>
>         <TD>${build.scm}</TD>
>       </TR>
>
> where do i look for these objects like
>
> build
> it
> project
>
> Thanks,
> -Kamal.
>
>  --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Website: http://earl-of-code.com

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to