AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
48 stars 21 forks source link

cleanup policy format #4

Closed Aleks3050 closed 4 years ago

Aleks3050 commented 4 years ago

Hi @bdellegrazie ! I need create cleanup policy with format "All Formats" I try to use cleanup policy format option

format: "(All Formats)"
format: "all", etc

But no effect. I can't attach policy to repository. What word i need to conflure for "All Formats"? Thank you! (nexus 3.24)

bdellegrazie commented 4 years ago

Hi @Aleks3050,

The constants for the various values are in the public code: https://github.com/sonatype/nexus-public/blob/release-3.24.0-02/components/nexus-cleanup-config/

the value you need is ALL_FORMATS. I have added an example.

In addition you should upgrade to 3.25.1 for security reasons.

Thanks!

Aleks3050 commented 4 years ago

Thank you!