<p>As far as I know, I think Octopus doesn't packages anything. The package should come from your CI Tool (Jenkins or TeamCity maybe?)</p>

<p>Having said that, I would <em>check on your previous step</em> in the CI/CD chain to see how are you packaging your solution, and filter those folders there, before packaging.</p>

<p>That will also help you:</p>

<ul>
<li>Reducing the package size </li>
<li>Increase speed in the deployment process</li>
<li>Avoid storing unnecessary files</li>
</ul>

<p><strong>High-level suggested CI/CD Chain summary</strong></p>

<p>CI Tool</p>

<pre><code>1. Compile/Test (if you're working with a compiled language)
2. Package only required folders
3. Push to Octopus
</code></pre>

<p>Octopus (CD Tool)</p>

<pre><code>1. Store and manage final packages
</code></pre>

CC BY-SA 4.0
2019-10-15T16:35:28.207Z
Initially Octopus deploy was deploying .NET artifacts only... Now I think Octopus deploy supports for Java, python as well
overexchange
CC BY-SA 4.0
2019-10-15T20:26:32.920Z
Related question - https://devops.stackexchange.com/q/9449/11527
overexchange
CC BY-SA 3.0
2018-03-31T21:50:48.523Z
2018-03-31T21:50:48.523Z
JDC
<p>Yes.. we can control the packages using nuspec file which will be added to your solution and you will be specifying the list of folders/files you dont wanna deploy. And you will use that nuspec to create the nuget package for deployments</p>

CC BY-SA 4.0
2019-10-15T20:26:44.087Z
Related question - https://devops.stackexchange.com/q/9449/11527
overexchange
CC BY-SA 3.0
2017-07-09T16:46:36.040Z
2017-07-09T16:46:36.040Z
Karthik Rajasekaran
<p>We are using <a href="https://octopus.com/" rel="nofollow noreferrer">Octopus</a> for our deployment to different environments. But we found that it always packages the complete solution and deploys it to the next level.
Is it possible to put some restrictions - like do not copy and deploy the config folders.
In our case we just need to deploy some specific folders and not the complete packaged solution. Is this possible with Octopus.</p>

<deployment><continuous-deployment><dotnet><octopus-deploy>
Octopus Deployment - only deploy some specific folders
Amit Gaurav
# Octopus Deployment - only deploy some specific folders

(Asked by: username_0 on 2017-06-19)

We are using [Octopus](https://octopus.com/) for our deployment to different environments. But we found that it always packages the complete solution and deploys it to the next level.
Is it possible to put some restrictions - like do not copy and deploy the config folders.
In our case we just need to deploy some specific folders and not the complete packaged solution. Is this possible with Octopus.

**Tags:** deployment, continuous-deployment, dotnet, octopus-deploy


---

## 2 answers

### Answer by username_1 on 2018-03-31. Score: 1

As far as I know, I think Octopus doesn't packages anything. The package should come from your CI Tool (Jenkins or TeamCity maybe?)
Having said that, I would check on your previous step in the CI/CD chain to see how are you packaging your solution, and filter those folders there, before packaging.
That will also help you:

Reducing the package size 
Increase speed in the deployment process
Avoid storing unnecessary files

High-level suggested CI/CD Chain summary
CI Tool
1. Compile/Test (if you're working with a compiled language)
2. Package only required folders
3. Push to Octopus

Octopus (CD Tool)
1. Store and manage final packages

> **Comments:**
> **username_2**: Initially Octopus deploy was deploying .NET artifacts only... Now I think Octopus deploy supports for Java, python as well  
> **username_2**: Related question - https://devops.stackexchange.com/q/9449/11527  

---

### Answer by username_3 on 2017-07-09. Score: 1

Yes.. we can control the packages using nuspec file which will be added to your solution and you will be specifying the list of folders/files you dont wanna deploy. And you will use that nuspec to create the nuget package for deployments

> **Comments:**
> **username_2**: Related question - https://devops.stackexchange.com/q/9449/11527  

---

