Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    progetbuildmaster
    3 Posts 2 Posters 13 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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,
      Patrick

      Product: BuildMaster
      Version: 6.1.4

      1 Reply Last reply Reply Quote 0
      • jraschJ Offline
        jrasch inedo-engineer
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          That's great! Thank you Jhon.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation