Bamboo 2.0 : Specifying Labels for a Plan's Build Results
This page last changed on Apr 07, 2008 by alui.
A label is a convenient way to tag and group build results that are logically related to each other. Labels can also be used to define RSS feeds and to control build expiry. Labels can be applied to build results automatically, by specifying the label(s) in a build plan (note that only Bamboo administrators can do this). Labels can also be applied ad hoc to build results by Bamboo users.
Regex example: 'There are \d+ results' In the above regex, '\d+' represents any number with one or more digits. ('\d' means 'any digit', and '+' means 'one or more times'. When combined, they mean 'any sequence of one or more digits'.) Therefore, positive matches would include:
Regex example with multiple labels: You can use "capturing groups" with Bamboo 1.2.1 or later to create different labels for different purposes. For example,
(PERFORMANCE_IMPROVED|PERFORMANCE_DETERIORATED)
\1 These settings will label your builds with PERFORMANCE_IMPROVED if "PERFORMANCE_IMPROVED" appears in the build log, and PERFORMANCE_DETERIORATED if "PERFORMANCE_DETERIORATED" appears in the build log. If both strings appear in a log, then both labels are applied to the build.
|
![]() |
Document generated by Confluence on Apr 14, 2008 01:39 |