Share this page

# 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:

In this topic:

## Overview

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.

Back to top

## Best practices for managing rules

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:

1. In Settings > Spaces, select a workspace.

2. 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.

Back to top

## Create a build failure classification rule

1. In Settings, open Log Classification Rules as described above.

2. Click + to add a rule.

3. Give the rule a meaningful name, such as `Null pointer`.

4. Enter the pattern that identifies the log lines you want to map to a specific build failure classification.

   Use `*` as a wildcard and use a `\` before special characters.

   Example: `*NullPointerException*`

5. 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.

6. Click OK.

   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.

Back to top

## Modifying a rule that is already in use

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.

Back to top

See also:

- Analyze builds
- Analyze tests

https://admhelp.microfocus.com ALM Octane 8942
Tips to improve your search results... ALM Octane Help Center ALM Octane Help 15.1.90 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: