Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Feed creation with retention rules
-
Hi,
I am creating feed without retention rules using rest api on Groovy, but when i am trying to put retention rules it's not working.
This is the body which is working:def nugetFeedConfig = '''
<Inedo.ProGet.Feeds.NuGet.NuGetFeedConfig Assembly="ProGetCoreEx">
<Properties SymbolServerEnabled="True"
StripSymbolFiles="True"
UseLegacyVersioning="False" />
</Inedo.ProGet.Feeds.NuGet.NuGetFeedConfig>
'''.stripIndent()body['FeedConfiguration_Xml'] = nugetFeedConfig .replaceAll(/[\r\n]/, '') .replaceAll(/\s\s+/, ' ')
How can i add retention rules in my nugetFeedConfig?
Regards,
PatrickProduct: BuildMaster
Version: 6.1.4
-
Hi Patrick,
As of ProGet v5.2, we have a new Management API that makes this much simpler.
I've added a Configure Retention example to the Update Entity docs here that shows how to add retention rules: https://inedo.com/support/documentation/proget/reference/api/feed-management#update
-
That's great! Thank you Jhon.