Octopus Deploy Documentation

Copy the Working Directory

Last updated

It can be frustrating when a deployment step isn't working as expected. Often the working directory is deleted before it is able to be inspected.

There is a variable, Octopus.Calamari.CopyWorkingDirectoryIncludingKeyTo, which if set to a file-path will cause the Calamari working directory to be copied to the configured location. This may assist in debugging.

The copied directory will include a file which contains the secret one-time key passed to Calamari to decrypt the sensitive variables used in the deployment.
This directory (or at least the Variable.secret file) should be deleted once no longer required.

This variable was created primarily for use by Octopus staff during development. We have documented it publicly as it has proven useful to our customers on occasion. Please use it only for debugging purposes. Do not rely on this behavior as part of your deployment process, as there is no guarantee it will not be removed in the future.

Welcome! We use cookies and data about how you use our website allow us to improve the website and your experience, and resolve technical errors. Our website uses cookies and shares some of your data with third party analytics companies for these purposes.

If you decline, we will respect your privacy. A single cookie will be used in your browser to remember your preference.