<Instructions> element

The <Instructions> element represents an instruction that - when execute - actually executes a series of instructions that are all defined within this wrapping element.

As with each instruction it is possible to define a condition for this instruction, so that all instructions wrapped by this element are only executed if the specified condition is met.


  <!-- Post-Commit instructions -->
    <HookTypeCondition HookType="PostCommit" />
    <!-- Send email reminder to user who modified "ImportantFile.txt" with further instructions -->
    <MailInstruction FromMailAddress="repocop@mydomain.com" ToMailAddresses="#author#@mydomain.com" Subject="Attention, #author# has changed an important file." BodyTemplateFile="ImportantFileChangedMailBody.txt">
      <ChangedPathCondition ChangedPathRegExPattern=".*/trunk/ImportantFile.txt" />	  

    <!-- Notify project leader about every change -->
    <MailInstruction FromMailAddress="#author#@mydomain.com" ToMailAddresses="projectleader@mydomain.com" Subject="Svn ##revision#" Body="#logmessage#"/>

Last edited Nov 13, 2010 at 12:04 PM by markushastreiter, version 1


No comments yet.