match

A <match> element is used within a <resultsblock> element to process lines of output. The <match> element takes a pattern attribute that defines matching lines. The pattern is a regular expression (Java regular expressions for Java engines in Build Forge 8.0, and Perl regular expressions for Perl engines in Build Forge 8.0 and all 7.1.x).

The match pattern can include parenthetical expressions, which are stored in the variables $1...$n.

<match pattern="^Change (\d+) on (.*?) (.*?) by (.*?)@(.*?) '(.*?)'$">

The <match> element uses <adduser>, <setenv>, <bom>, and <field> as subelements. See the reference information for resultsblock to see a more extensive example.


Feedback