Email-Ext , Subversion Repo URL in Jelly script

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Email-Ext , Subversion Repo URL in Jelly script

Kamal Ahmed
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Email-Ext , Subversion Repo URL in Jelly script

slide
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.


On Fri, Jun 28, 2013 at 10:14 AM, Kamal Ahmed <[hidden email]> 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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.