-
Notifications
You must be signed in to change notification settings - Fork 2
Instructions element
BrightLight edited this page Sep 26, 2015
·
2 revisions
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 -->
<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" />
</MailInstruction>
<!-- Notify project leader about every change -->
<MailInstruction FromMailAddress="#author#@mydomain.com" ToMailAddresses="projectleader@mydomain.com" Subject="Svn ##revision#" Body="#logmessage#"/>
</Instructions>