I am using octopus version 3.13.0. In the custom install directory, How can I exclude a folder being purged. As of now the entire directory has been purged. I need to exclude one folder from the directory.
I enabled the custom deployed script. But don’t know how to write the script for do the excluding of folder.
Thanks for getting in touch!
In later versions of our software we have added the option to exclude specified files or folders from the purge.
You would need to upgrade your version to take advantage of this.
If upgrading isn’t an option at present, then the other option would be to disable the automatic purge option and instead create your own pre-deployment script to clear the contents of the directory and skip the parts you need to keep.