Our developers frequently build “snapshot” builds that they wish to deploy to our dev environment and the version number doesn’t change.
I have added a variable to my project “Octopus.Deployment.ForcePackageDownload” and set it to “True”.
When re-deploying though, the “Acquire packages” step always says "Checking package cache for package MyPackage 1.0.8-d
Package was found in cache. No need to download. Using file: ‘e:\xyz\MyPackage.1.0.8-d_413F27C157C2334786060B4DBDF84A87.nupkg’
If in the GUI, I select force re-download, it goes out to our repo and pulls down the latest file for that version and does not use the cache
In testing, I added another variable: OctopusPrintEvaluatedVariables = True
I can now see in each step of my project the entry [Octopus.Deployment.ForcePackageDownload] = 'True’
But for my “Deploy Package” step (deploy nuget package) it doesn’t print any of these variables.
There is a non-numbered step called “Acquire packages” which gives the message above about finding the package in cache and not downloading. It doesn’t show any of the variables in it either.
it doesn’t seem that the Deploy Nuget Package step (and Acquire Packages) use or check the variables to decide if it should download or not.
Thanks!
Peter