Overriding Drop Folder Path

Hello,

We have just started using the Offline Deployment Target in Octopus Server v3, and on the whole, this has been working really well, we just have a couple niggles that we are hoping that you can help with.

When we created the deployment target, we were asked for a “Drop folder location”, which we gave as \\OfflinePackages. As expected, once a release was promoted to the Deployment Target, the files were copied into this folder location. We then proceeded to copy those files onto the actual deployment server, as it is not possible to access that share from the deployment server.

When we then tried to run the cmd file on the target machine, it complained that it couldn’t locate/access the \\OfflinePackages folder. A quick search of the files in the package folder showed that it existed in a number of files as the value of the “Octopus.Tentacle.CurrentDeployment.PackageFilePath” variable. In order to progress, we did a text based search/replace of this value, and replaced it with the actual location of the installation package. While this works, it seems like we must be missing something.

Is it possible to override this value in the installation cmd/ps1 file? If so, how can we go about doing that? I didn’t see anything in the documentation regarding this, but I might have missed it.

Thanks

Gary

Hi Gary,

Thanks for reaching out. We’ve added a fix for this in 3.0.24 which was released last night. Here’s the github issue that references that fix https://github.com/OctopusDeploy/Issues/issues/1988

Thanks!

Dalmiro

Hello,

Thanks for getting back to me!

I will get the latest version installed, and give that a try.

I noticed that the Drop Folder Path also appears in a number of the *.Variables.json files. Does this latest release cover changing them as well, or do these not need to be changed?

Thanks

Gary

Hi Gary,

It should take care of all the scenarios. If you find it doesn’t, let us know on this thread and we’ll take a look

Thanks,

Dalmiro

All seems to be working using the latest version of Octopus.

Thanks

Gary