New Reply

Good news! We have migrated all the Q&A on this site to, and are currently monitoring questions there!

Here are some important links:

All posts here are permanently locked (and will be redirected soon), and if you have any issues with the new site, please submit a support ticket, use the contact form, or visit our Slack Workspace.


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"
UseLegacyVersioning="False" />

 body['FeedConfiguration_Xml'] = nugetFeedConfig
        .replaceAll(/[\r\n]/, '')
        .replaceAll(/\s\s+/, ' ')

How can i add retention rules in my nugetFeedConfig?


Product: 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:

That's great! Thank you Jhon.