Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69135

Add a "Versions to include" field to the Global Library Cache feature

XMLWordPrintable

      What?

      I would like add an include feature to pipeline-groovy-lib-plugin

      My use case is that I have some stable tags which I would like cached, but all other branches (used in development of library) should be excluded. Since there is only a chance to exclude and no chance to use regular expressions to say "exclude anything but the following tags" it is not possible.

      Having an include field would make this easy.

      Thoughts

      • Would having both exclude and include be confusing?
        • we can say they are mutually exclusive and that, in the case that both are filled, exclude takes precedence
      • Any backwards compatibility issues?
        • none that I can see, since the default value will be empty anyway.

      I am more than happy to add the PR myself

            Unassigned Unassigned
            sboardwell Steve Boardwell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: