Hi,
I want to be able to use jelly script ( Apologize for not doing this in Groovy
) to display the branch name on which the changeset was submitted in subversion.
Like , here is a snippet of my custom.jelly
The p.path string is :
/perlapp/trunk/cgi-bin/developer/smeview/reviewfiles/demo/cui_sample.csv
so, i want to extract "perlapp" and "trunk" and display them in the email
header.
<TD>Build duration:</TD>
<TD>${build.durationString}</TD>
</TR>
<TR>
<TD>Branch:</TD>
<TD>I want to do a regex here on ${p.path} to extract the first and
second string</TD>
</TR>
</TABLE>
<BR />
<!-- CHANGE SET -->
<j:set var="changeSet" value="${build.changeSet}" />
<j:if test="${changeSet!=null}">
<j:set var="hadChanges" value="false" />
<TABLE width="100%">
<TR>
<TD class="bg1" colspan="2">
<B>CHANGES</B>
</TD>
</TR>
<j:forEach var="cs" items="${changeSet}" varStatus="loop">
<j:set var="hadChanges" value="true" />
<j:set var="aUser" value="${cs.hudsonUser}" />
<TR>
<TD colspan="2" class="bg2">${spc}Revision
<B>${cs.commitId?:cs.revision?:cs.changeNumber}</B>by
<B>${aUser!=null?aUser.displayName:cs.author.displayName}:</B>
<B>(${cs.msgAnnotated})</B></TD>
</TR>
<j:forEach var="p" items="${cs.affectedFiles}">
<TR>
<TD width="10%">${spc}${p.editType.name}</TD>
<TD>${p.path}</TD>
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.