Manage all build failure classification rules
This topic describes how to create rules that map Jenkins build log messages to build failure classifications. ALM Octane uses these rules to analyze build logs and automatically classify build failures.
In this topic:
Users with roles based on the DevOps admin role generally have the permissions needed to manage build failure classification rules.
Other users can create classification rules inside a pipeline run, when analyzing build failures. For details, see Analyze builds.
It's most convenient to create rules in a pipeline run's Logs tab. You can open a build log and create a rule based on a specific message.
In Settings, you can edit existing rules or remove rules that are not necessary.
To access Settings:
In Settings > Spaces, select a workspace.
Click the DevOps tab. On the left side of the pane, select Log Classification Rules.
The goal is to reach a small number of rules that cover most of the log messages and build failure classifications that are relevant for your pipeline runs.
In Settings, open Log Classification Rules as described above.
Click + to add a rule.
Give the rule a meaningful name, such as
Enter the pattern that identifies the log lines you want to map to a specific build failure classification.
*as a wildcard and use a
\before special characters.
Select a classification to assign to log lines that match the pattern.
For example: Code issue
Tip: To add classification labels to the list of available labels, go to a pipeline run's Builds tab and click the Build Failure Classification button.
The rule is applied whenever ALM Octane receives a Jenkins build log for a failed build.
Log lines that match the pattern are labeled with the specified classification. If a line matches more than one rule, it is classified by the most recently updated rule.
The relevant builds are automatically labeled with the first classification mapped in their log.
What happens when I change a rule that is in use?
If you change a rule's classification, any log line already assigned by this rule is labeled with the new classification.
This affects log files from previous builds, but does not affect the classification of any existing builds. The change in the rule affects the classification of future builds only.
What happens when I delete a rule that is in use?
If you delete a rule that has already assigned a classification to a build log line, the classification is removed from all log files, but remains on any builds is was assigned to.