Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-12515

Regular Expression support for repository Include/Exclude Patterns

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.11.2
    • Fix Version/s: None
    • Component/s: Artifact Storage
    • Labels:

      Description

      Currently, the Include/Exclude Patterns of repository (local/remote/virtual) supports only Ant-like pattern => only ?, *, ** are supported.

      It could be useful to support a "real" regular expression.

      This feature could be realized by a UserPlugin, but it would be better if could be native in Artifactory.


      Use case sample : Maven groupId verification

      For a Maven usage in company, where projects are identified by an unique id (3 letters, 2 digits), we can consider that the groupId should be (sample) : com.company.aaa00, com.company.azd42, ...

      Currently with AntLike pattern, the best solution is to provide the Include Pattern :

      com/company/?????/**/*

      With a regular expressoin, it could be (better) :

      com/company/[a-z]{3}[0-9]{2}/**/*
      

      Use case sample : Remote Artifact exclusion

      For any reason, we would have to refuse/exclude some artifact in specific version.
      It could be done simply with a regular expression, not an AntLike pattern

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            axel3rd Alix Lourme
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: