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!

    How do deployments get recorded for a ProGet package?

    Scheduled Pinned Locked Moved Support
    progetdeploymentspackages
    7 Posts 5 Posters 41 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

      We use a home-grown tool in place of NuGet.exe to install our NuGet packages (because NuGet.exe doesn't allow us to have multiple copies of the same package on the same server). It would be cool if we could report back to the ProGet feed that this package was installed. What triggers a deployment to get recorded in a feed? Thanks.

      Product: ProGet
      Version: 4.7.13

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

        This is handled via additional HTTP headers sent w/ the GET request for the package. Here are the supported ones:

        • X-ProGet-Deployment-Application - (Required) - the application or tool doing the deployment e.g. NuGet, BuildMaster, Some Custom Tool
        • X-ProGet-Deployment-Description - (Required) - brief summary of deployment
        • X-ProGet-Deployment-Target - (Required) - string that identifies where the package was installed, typically the server name
        • X-ProGet-Deployment-Url - (Optional) - URL that links to more information about the deployment
        • X-ProGet-Deployment-UserName - (Optional) - name of the user performing the deployment, defaults to authenticated user
        • X-ProGet-Deployment-Date - (Optional) - ISO 8601 UTC date of deployment, or current date if not supplied
        1 Reply Last reply Reply Quote 0
        • brice2parisB Offline
          brice2paris
          last edited by

          Hi,

          It works well with NuGet but It doesn't work with npm :

          GET http://swdafrwnetv84.cib.net:80/npm/NPM-Int/angular/-/angular-1.6.10.tgz HTTP/1.1
          connection: keep-alive
          User-Agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
          X-ProGet-Deployment-Application: TestApplication
          X-ProGet-Deployment-Description: A description
          X-ProGet-Deployment-Target: target.dtc.com
          npm-in-ci: false
          npm-scope: 
          npm-session: d0cacdb74913b43b
          referer: install
          pacote-req-type: tarball
          pacote-pkg-id: registry:angular@http://swdafrwnetv84.dtc.net/npm/NPM-Int/angular/-/angular-1.6.10.tgz
          Accept: */*
          Accept-Encoding: gzip,deflate
          Host: swdafrwnetv84.cib.net:80
          

          Thanks for your Help.

          Regards

          Fabrice

          1 Reply Last reply Reply Quote 0
          • brice2parisB Offline
            brice2paris
            last edited by

            Work now since 5.0.13

            1 Reply Last reply Reply Quote 0
            • M Offline
              mhull_0872
              last edited by

              I've been searching all over the internet and can't find an answer; is there a way to configure nuget.exe to pass custom headers in the requests or do you need to basically write your own tooling to do so?

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

                Hello,

                @mhull_0872 your timing is perfect. While currently it requires custom headers, we are implementing a simple REST API right now that will be allow you to add custom deployment records. Here is the associated issue: https://inedo.myjetbrains.com/youtrack/issue/PG-1666

                It's planned to be included in the 5.2.26 release due out next Friday.

                Hope this helps,
                -John

                1 Reply Last reply Reply Quote 0
                • rhessingerR Offline
                  rhessinger inedo-engineer
                  last edited by

                  Hi @mhull_0872,

                  We just released the latest version of ProGet 5.2.26 on 2/28/2020 which includes the new Package Deployment API. You can learn more about the package deployment tracking feature here. We also have documentation on how to use the API endpoint here.

                  Thanks,
                  Rich

                  Products Engineer, Inedo

                  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