Skip to content

Is pattern matching supported in branch name used in PACT_BROKER_DATABASE_CLEAN_KEEP_VERSION_SELECTORS #870

@janmekota

Description

@janmekota

Hello,
we setup Automatic data clean up.
I would like to ask if it is possible to use e.g. regex or glob in branch name while configuring the "keep" selectors.

E.g. if we have release branches

  • 11.20.0_release
  • 11.21.0_release
  • 11.22.0_release

Can I use something like *_release for branch:

PACT_BROKER_DATABASE_CLEAN_KEEP_VERSION_SELECTORS:
'[{"max_age": 90, "branch": "main"}, {"max_age": 90, "branch": "*_release"}, { "deployed": true }, { "released": true }, { "latest": true }]'

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions