Search code examples
teamcityoctopus-deploy

How to exclude folder/file from TeamCity/Octopus Deploy?


I am generating build using TeamCity and deploying the build using Octopus (used Octopack) and I have been successful doing so. But, one thing I am unable to figure out is -- how can I exclude folder/file which is part of the created package from going into my custom installation directory?


Solution

  • Got the answer from Octopus support:

    Octopus has an option called Custom deployment script, using which we can remove the folder/file which we do not want to be part of the directory.

    Here is the screenshot