Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. MaxCascone
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by MaxCascone

    • MaxCascone

      Proget: some metadata sent with Jenkins uploadProgetPackage plugin not applied
      Support • proget jenkins metadata package upload • • MaxCascone  

      9
      0
      Votes
      9
      Posts
      16
      Views

      MaxCascone

      Thanks, yeah, that seems to work. I changed my pipeline code to not send any title metadata to ProGet, which returned that field in the UI to its original behavior. I also found that rebuilding an existing package, and sent to ProGet with the updated pipeline, has the same effect.
    • MaxCascone

      chocolatey connector healthy but shows no packages
      Support • • MaxCascone  

      18
      0
      Votes
      18
      Posts
      41
      Views

      MaxCascone

      After futzing with the certs on the proget host vm, it looks like we've got full connectivity to the chocolatey.org feed as well as nuget.org. Can someone remind me/point me to docs around the difference between connector caching of packages vs. the "pull to proget" function? thanks!
    • MaxCascone

      Proget: deployment usage api not failing but no usage logged
      Support • • MaxCascone  

      9
      0
      Votes
      9
      Posts
      15
      Views

      stevedennis

      It seems the package deployment endpoint is POST-only, but using the Native API you could use the Packages_GetPackageDeployments method. Down the line we can certainly consider adding GET method on the deployment api... if you can help us know what you/someone will use that info for ;)
    • MaxCascone

      Proget: delete all versions of a package via API
      Support • proget api delete • • MaxCascone  

      7
      0
      Votes
      7
      Posts
      32
      Views

      stevedennis

      @mcascone yep, that's a good way of putting it!
    • MaxCascone

      new docs: good! broken links: bad!
      Support • • MaxCascone  

      6
      0
      Votes
      6
      Posts
      15
      Views

      atripp

      @mcascone do you happen to remember where you found that link? We are trying to be conservative about adding a ton of redirect rules... We are now running automated scans, so HOPEFULLY it's picking up bad links within the docs.
    • MaxCascone

      ProGet: include a Universal Package feed in a nuget config file?
      Support • • MaxCascone  

      6
      0
      Votes
      6
      Posts
      15
      Views

      atripp

      @mcascone I don't think it's new, but it's just used to specify the dependencies field in the manifest file; I'm thinking, perhaps, it might be similar/identical to the consumes field you added? https://docs.inedo.com/docs/upack-universal-packages-manifest The only thing Inedo tools use it for today is just displaying information in ProGet, on the dependencies tab. That may / may not be helpful.
    • MaxCascone

      ProGet Feature Request: Filter by Group
      Support • • MaxCascone  

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • MaxCascone

      ProGet as ClickOnce publish target?
      Support • • MaxCascone  

      5
      0
      Votes
      5
      Posts
      10
      Views

      MaxCascone

      Just thought I'd drop in and describe where we ended up with this. It works for us, YMMV. This is running in the context of a Jenkins deploy run, but the concepts should apply to most other use cases. There are a lot of env vars floating around in all of this; i know it's not ideal, but it's really the easiest way to move values around in Jenkins without going crazy with OO classes that are really hard to get working in the Jenkins context. I have recently come up with a pattern to store more complex objects in env vars as json strings, and convert them when needed. Happy to answer any questions from anyone interested in using this admittedly obscure functionality. // this is called from vars/deploy.groovy when appropriate clickOnceDeploy([clickAppName:env.clickOnceName, clickAppPath:env.clickOnceDir, targetEnv:targetMap.key]) // defined in vars/deploy.groovy def clickOnceDeploy(HashMap clickParms) { // find the zip in the download folder String dlFolder = "${WORKSPACE}/${env.packageDownloadDir}" String clickOncePackage = "${dlFolder}/${env.releasePath}/${clickParms.clickAppPath}.zip" String targetEnv = clickParms.targetEnv String zipFileName = "${clickOncePackage.replace('.zip', '')}-${targetEnv}.zip" // extract the zip - select the target env folder unzip zipFile: clickOncePackage, glob: "${targetEnv}/**", quiet: true // zip that folder up, use powershell to get the dir included pwsh "Compress-Archive -Path ${targetEnv} -DestinationPath ${zipFileName} -Force" // publish it to proget asset dir HashMap publishParams = [assetDir:"${clickParms.clickAppName}", zipFilePath:zipFileName] addToInfoMessages("Publishing ClickOnce App: ${clickParms.clickAppName}/${targetEnv}") publish.publishProGetAssetFromZip(publishParams) // defined in vars/publish.groovy def publishProGetAssetFromZip(HashMap publishParams) { // check for required params assert publishParams.assetDir != null assert publishParams.zipFilePath != null // sane defaults publishParams.get('progetBase', env.progetUrl) publishParams.get('overwrite', true) publishParams.get('format', 'zip') // build the api endpoint String progetAssetImportApi = "endpoints/${publishParams.assetDir}/import/?format=${publishParams.format}&overwrite=${publishParams.overwrite.toString()}" String assetUrl = "${publishParams.progetBase}/${progetAssetImportApi}" // need to pass the api token, so pull it from the jenkins cred store withCredentials([string(credentialsId: 'proget-api-key', variable: 'token')]) { retry(3) { httpRequest httpMode: 'POST', url: assetUrl, uploadFile: publishParams.zipFilePath, customHeaders: [[maskValue: true, name: 'X-APIKey', value: token]], ignoreSslErrors: true, responseHandle: 'NONE', contentType: 'APPLICATION_OCTETSTREAM', wrapAsMultipart: false, quiet: true } } addToInfoMessages("Published to ${publishParams.progetBase}/assets/${publishParams.assetDir}") }
    • MaxCascone

      Upgrade with offline installer hub?
      Support • • MaxCascone  

      4
      0
      Votes
      4
      Posts
      23
      Views

      atripp

      Thanks for updating and letting us know the problem was related to a connection string!
    • MaxCascone

      ProGet: silent fail when uploading conflicting package version
      Support • • MaxCascone  

      15
      0
      Votes
      15
      Posts
      36
      Views

      MaxCascone

      Fantastic, looking forward to it! Sorry for the work, but i'm happy to contribute in some small way as well!
    • MaxCascone

      breaking forward slash inserted in downloadprogetpackage jenkins plugin
      Support • • MaxCascone  

      3
      0
      Votes
      3
      Posts
      8
      Views

      MaxCascone

      @mcascone_8142 said in breaking forward slash inserted in downloadprogetpackage jenkins plugin: I opened a bug on Jenkins' JIRA: https://issues.jenkins-ci.org/browse/JENKINS-61299
    • 1
    • 2
    • 2 / 2