continuous integration - How to add revision numbers in the title of e-mail published by cruisecontrol.NET? -


this question should ask year earlier.

back day, setup cruisecontrol.net 1.4.2.14 our continuous integration system. wanted add source revision number , revision number of binary built. however, since restarted automatically if of external files , environment variable including ccnet.config modified, can't find way edit title of build informing e-mail while not making cruisecontrol.net restart.

somehow solved problem in crapy way, not worth mention. time make things right.

any appreciated. in advance.

it not totally clear want do, can extract revision information xml (here subversion):

<!-- extract subversion revision information xml. --> <target name="revisionstamp">     <property name="_target" value="${tmpdir}/svn.xml"/>     <exec         program="${svn}"         output="${_target}">         <arg value="info"/>         <arg value="--xml"/>         <arg file="${basedir}"/>     </exec> </target> 

and extract revsion number xml:

<xmlpeek     file="${tmpdir}/svn.xml"     xpath="/info/entry/@revision"     property="revision"/> 

finally, use ${revision} construct whatever filename or directory want.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -