Skip to content

Auto-disabling of branches based on patterns

ID: net.nemerosa.ontrack.extension.stale.AutoDisablingBranchPatternsPropertyType

Given a list of patterns and their behaviour, allows the disabling of branches based on their Ontrack names.

Scope

  • project

Configuration

  • items - List - required - List of patterns and their behaviour

    • excludes - List - required - List of regular expressions against Ontrack branch names. If none, no branch is excluded.

    • includes - List - required - List of regular expressions against Ontrack branch names. If none, matches all branches.

    • keepLast - Int - required - When mode == KEEP_LAST, number of matching branches to keep (semantic versioning order).

    • mode - KEEP, KEEP_LAST, DISABLE - required - Expected behaviour when matching a branch