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!

    ProGet - Delete API for Builds

    Scheduled Pinned Locked Moved Support
    4 Posts 3 Posters 27 Views 2 Watching
    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.
    • J Offline
      jw
      last edited by

      Hi,

      I've been looking to delete old builds from SCA, but cannot find any API endpoint for that.

      All I could find was the option to archive builds, but that is not really what we need.

      For projects there is at least the native API Projects_DeleteProject, but in the regular API the delete endpoint is also missing.

      Could you add these missing endpoints?

      dean-houstonD 1 Reply Last reply Reply Quote 0
      • dean-houstonD Offline
        dean-houston inedo-engineer @jw
        last edited by

        Hi @jw ,

        Nice catch, we'll add pgutil builds delete and pgutil builds projects delete via PG-3189

        You may be able to use pgutil builds create to archive a build (`--inactive), but I'm not sure. Either way, there's no way to flip it back, so we will update it.

        The create command can also update, but it's not clear, so we will edit the help text to clarify.

        -- Dean

        1 Reply Last reply Reply Quote 0
        • J Offline
          jw
          last edited by

          Hi @dean-houston

          Thanks for the implementation.

          A remark:
          Both delete APIs have a bit odd behavior when it comes to return codes. They both always return 200 OK when anything was supplied, no matter if the project name (and version) matched anything to be deleted or not. Wouldn't 404 be more appropriate for the "I couldn't find anything to delete" case?

          Also I would like to renew my wish to automatically deploy a new version of Inedo.ProGet when something in pgutil was changed.

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @jw
            last edited by

            Hi @jw ,

            We added "auto-publish Inedo.ProGet" to our internal tracking list -- and in theory it will be done in the next week or so. I think we meant to do that earlier but it just fell off the list.

            Thanks for pointing that out - please don't hesitate to bug us if you don't see it published next time :)

            Thanks,
            Alana

            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