FAQ Database Discussion Community


Automatically pull packages on provisioning

octopus-deploy
We're hosting on EC2. I've read this article here for provisioning tentacles. Is there a script which will then tell that provisioned server to grab the latest packages (from the latest release of the environment it's provisioned for)?

Change file name during Octopus Deploy

.net,octopus-deploy
I need to provide variable for different environments. For each environment I need to change names for certain files. What is best way to change names of certain files on Octopus Deploy? Is it possible with some existing Octopus functionality or I need to run PowerShell script for that purpose?...

TFS 2012 not copying transformed Web.Config to _PublishedWebsite

tfs,msbuild,web-config,tfs2012,octopus-deploy
I have a web project with a config transform. On my local machine, when the project is built, the transform works fine. However, my project is pushed to TFS and built there, the config file is transformed in the main drop folder; However, the version in _PublishedWebsites is the original,...

Publish nuget package during TeamCity build to Octopus

teamcity,octopus-deploy
There is a known problem that if you deploy during a TeamCity build, a previous version will be deployed (as the current will be available only after the build is finished). Documentation suggests creating a secondary TeamCity BuildConfiguration as a workaround but it sucks and seems not to work anymore...

Retrieve --packageversion passed from TeamCity as a command line argument

teamcity,octopus-deploy
When I create release from TeamCity, I specify --packageversion %build.number% as an additional command line argument. Is there a way to read that variable in Octopus Deploy? Looking at documentation, I've found only one variable containing "packageversion": Octopus.Action.Package.NuGetPackageVersionand it doesn't seem like what I need as it is specific to...

Add Binding To IIS With PowerShell Without Overwriting Existing

powershell,iis,octopus-deploy
We use OctopusDeploy to create the website and we use the create website template that is on the community step sites. I have modified it slightly to ensure that if the website exists it adds the default binding however it is removing all the existing bindings. Is there a way...

Deploy Nuget package to multiple sites usingOctopus Deploy

teamcity,octopus-deploy,teamcity-9.0,octopus
I have 10 different sites that are the exact same site files just deployed to 10 different IIS sites. The only difference between the 10 sites is a web.config variable SystemID. This ID is used to pull the clients connectionstring from a DB before the user logs in. Once the...

When does OctoPack create the nuspec file?

octopus-deploy,nuspec,octopack
The Using OctoPack mentions A .nuspec file describes the contents of your NuGet package. OctoPack automatically creates one if you haven't provided one, by guessing some of the settings from your project. I've run msbuild with the /p:RunOctoPack=true flag set, and expect to see the .nuspec file in the project...

Octopack for .Net 2.0 and msbuild 2.0

msbuild,octopus-deploy,octopack
I was setting up number of projects to build NuGet packages and push onto NuGet server, so it could be later used by Octopus Deploy. All was fine until I needed to apply the same process to legacy projects. The error was: error MSB4062: The "OctoPack.Tasks.CreateOctoPackPackage" task could not be...

Octopus nuget feed duplicated package names

octopus-deploy
I deploy several projects at one Octopus Deploy server. Some of the project names (i. e. Web) are the same between different Octopus projects. So when I publish these packages to a Octopus nuget feed, I guess they will overwrite each other (in case of the same version number). So...

Can I use my OctopusDeploy built-in Package Repository in Manage NuGet Packages?

nuget,octopus-deploy
I have a working Octopus Deploy server which has a library of packages I built. I have an assembly which depends on one of the assemblies which I have deployed in Octopus Deploy and which is currently in that repository. I tried adding it as a package source in NuGet...

Octopack packaging windows service as if it were a web site

deployment,octopus-deploy,nuspec,octopack
I have a windows service which contains the necessary components to allow it to render razor templates. This service listens on a message queue and sends emails, using the razor templates to generate rich html. Everything is working fine, however, when it comes to deploying it with Octopus Deploy, it...

Deploy a specific version of a NuGet package with Octopus

tfs,octopus-deploy
We have an automated build on TFS that creates a release in Octopus, which is autonomously deployed to a test environment. As part of this build we provide a --defaultpackageversion value that lines up with our release roadmap, e.g. 4.1.1.1 - this version is assigned in the build template and...

How to fail Octopus deploy if missing vc2013 Redistributable Packages are missing

octopus-deploy
Ho can I check if the C++ redistributable packages for visual studio 2013 is installed and fail if not. I need to check if the x64 and x86 version is installed. https://www.microsoft.com/en-us/download/details.aspx?id=40784...