I am working with TeamCity & Octopus Deploy to kick off CI/CD for a SharePoint project. I am unable to get OctoPack to add the .wsp file(s) to my solution during the builds process in TeamCity. Since, OctoPack skips the file(s) the deployment to SharePoint files due to not having .wsp file(s) in the directory of the unpacked project. I have tried to add a nuspec file allowing the addition of missing files, but the process will just skip my configured directories in my nuspec file.
nuspec file config: Attempted Configuration
<files> <file src="bin\*.*" target="bin" /> </files>
<files> <file src="bin\Debug\LITTLER.Branding.wsp" target="LITTLER.Branding.wsp" /> </files>
<files> <file src="bin\*\*.*" target="" /> </files>
<files> <file src="bin\*" target="" /> </files>
Command Line Parameters:
/t:Build /p:IsPackaging=True /p:RunOctoPack=true /p:OctoPackEnforceAddingFiles=true
The process definitely finds my nuspec file and updates the file through out the process all while being skipping “bin*.*” configuration. I would expect to find more files using the command line switch “/p:OctoPackEnforceAddingFiles=true” and a custom nuspec file, but this is not working. Any thoughts or suggestions would be greatly appreciated.