Questions tagged [octopus-deploy]

Octopus Deploy is an automated deployment system designed for .NET developers. It also supports other languages/platforms and non-Windows deployment.

octopus-deploy
Filter by
Sorted by
Tagged with
53 votes
9 answers
75k views

How to start Docker daemon (windows service) at startup without the need to log-in? [closed]

We have Docker for Windows installed on a Windows Server 2016 Datacenter box. We use this box as a build agent for our docker containers. When we try to connect to this box via the daemon to build a ...
Clayton Rothschild's user avatar
13 votes
4 answers
8k views

How to get IIS site to start up automatically after deployment?

I have a Web API service that I'm deploying to my various environments (using Octopus Deploy). It is supposed to do various tasks on startup, e.g. run any migration scripts required by Entity ...
Shaul Behr's user avatar
  • 37.6k
2 votes
1 answer
2k views

Angular 2 and Team City Production/Environment Variables

We have a new Angular app that is building AOT to a folder. Everything is working fine, but we are trying to configure it to a five-step build process using TeamCity/Octopus Deploy, where each step ...
joh04667's user avatar
  • 7,309
28 votes
1 answer
34k views

How to add a folder to a nuspec file

So I'm actually trying to package up a web site project (not web application so no csproj file) into a NuGet package ready for Octopus to consume but am running into one brick wall after another.. I ...
Lee Englestone's user avatar
25 votes
3 answers
34k views

How to exclude a folder from a nuget package

I'm using Octopack / Nuspec file to build my nuget package. I would like to exclude certain folders which exist in the project. e.g. the "obj" file. I've been trying to get the exclude tag to work, ...
Kye's user avatar
  • 6,039
3 votes
3 answers
2k views

How to deploy azure webjob using Octopus

How to deploy azure webjob using Octopus deployment? For me, octopus says it is deployed to azure but not able to see my webjob under the website. Can anyone help how to achieve this?
Mukil Deepthi's user avatar
35 votes
2 answers
84k views

Powershell in NonInteractive mode

I use Octopus for our deployments. I have a problem with one of the Powershell scripts to control the deployment: # stops running processes $processes = @("Notepad", "Firefox") foreach ...
tobre's user avatar
  • 1,385
21 votes
6 answers
7k views

Octopus deployment from Teamcity not using the latest packages

I have set up a build step on TeamCity,as described here, to do automatic release deployments to our test server. But it is not using the latest nuget packages that was build in TeamCity. Use Case : ...
Captain0's user avatar
  • 2,603
14 votes
1 answer
42k views

Terraform v0.12 Multi-line String EOF shell-style "here doc" syntax not been interpreted as before with v0.11

Within Octopus Deploy I've setup a Terraform Apply Step using their Apply a Terraform template In my Terraform main.tf file I want to use a connection to run an remote-exec on a Amazon Linux EC2 ...
Martin Woods's user avatar
12 votes
6 answers
10k views

Cannot add part for the specified URI because it is already in the package

I am using NUGET Pack in teamcity to build a package. But it is creating the following error. I am using nuget teamcity version 2.2.1. Step 2/2: Build Package (NuGet Pack) (14s) [12:10:40][Step 2/2] ...
sam's user avatar
  • 4,634
8 votes
6 answers
2k views

VSTS + Octopus Deploy? Why do I see a lot of CI/CD setups with both?

I'm a developer whose transitioning into Devops. By observation, I've noticed that a lot of dev shops have started using Octopus Deploy and Azure Devops Services (AzDo, formerly VSTS), or they are ...
RLH's user avatar
  • 15.5k
6 votes
2 answers
4k views

Publish nuget package during TeamCity build to Octopus

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 ...
SiberianGuy's user avatar
6 votes
1 answer
4k views

Create Nuget package for Dacpac and Powershell script

How do I create a Nuget package in Visual Studio 2013 that includes a dacpac and a Powershell script? Would I have the two files in the same location then call nuget pack {folder name}? The Powershell ...
m00nbeam360's user avatar
  • 1,367
5 votes
2 answers
9k views

Adding a second trigger in task schedule

Have a powershell script that will create a scheduled task, for deployment, by way of Octopus, to a Windows 2012 server. Function Create-ScheduledTask($TaskName,$RunAsUser,$TaskRun,$Schedule,$...
tombags's user avatar
  • 61
5 votes
1 answer
1k views

Integrating Octopus Deploy and Dynamics CRM

I'm using an on premises version of CRM 2011, which I'm about to begin developing against. We're using Octopus Deploy with some other sites. It would be great if there was a way to import CRM ...
Kye's user avatar
  • 6,039
5 votes
2 answers
4k views

How to specify Octopus built-in variable names in an XML configuration file?

We are testing Octopus Deploy, so we made a sample web.config file that we installed and transform in different environments. web.config transformation and use of custom variable work fine, but I can'...
Vagif Abilov's user avatar
  • 9,933
5 votes
1 answer
3k views

Powershell job with alternate credentials from Octopus Deploy

I've got an Octopus Tentacle running a deploy script. The tentacle is running as the LocalSystem account. Inside the script, I'm able to do pretty much everything I need, aside from some archive bit. ...
Chase Florell's user avatar
4 votes
2 answers
7k views

How to set system variable value in Octopus Deploy from PowerShell

I am trying to assign value to built-in release notes variable in "Run a Script" step. $OctopusParameters["Octopus.Release.Notes"] = "Some release notes" In the next step "Send an Email" I am using ...
Viktors Telle's user avatar
4 votes
2 answers
9k views

Octopus and Continuous Integration - What's the best practice around when a release should be created?

On a current project we are using Teamcity and Octopus for building and deploying our IIS app. We have 4 environments. The CI Environment (automated build on checkin, runs unit tests, and automated ...
vicsz's user avatar
  • 9,652
4 votes
1 answer
4k views

How to exclude a subdirectory and contents from a nuget package

So I've a website that I'm trying to package for Octopus Deploy. I've the following folder structure: Web | Views | WantThis Dontwantthis WantThis1 ...
jaywayco's user avatar
  • 6,086
3 votes
1 answer
3k views

Can I create a nuget package without a project file

We are trying to integrate Octopus-Deploy with our existing build process. Octopus-Deploy expects nuget packages to deploy. Now, for a variety of reasons, we change various file configurations after ...
jazza1000's user avatar
  • 4,169
2 votes
2 answers
3k views

Export variables from Octopus project to json file

Is there any way to export Octopus variables to json file, using "Command" step in Jenkins? According to official Octopus documentation I only able to export Projects and Releases. Is there any way ...
Vasyl Stepulo's user avatar
2 votes
3 answers
6k views

Install Chocolatey package if software is not installed, but skip install if newer version of software is already installed?

I'm using the following PowerShell script to install dotnetcore-windowshosting version 1.1.1 via an Octopus Deploy step. ChocolateyPackageId is equal to "dotnetcore-windowshosting" and $...
PatrickNolan's user avatar
  • 1,771
2 votes
1 answer
1k views

Replication of production env database to staging prior to deployment with Octopus

In order to verify the deployment of my database scripts better, I'd like to pre-initialize my Staging database with a mirror image of the Production database as a first step in my Octopus deployment. ...
jt000's user avatar
  • 3,216
2 votes
1 answer
2k views

TFS 2012 not copying transformed Web.Config to _PublishedWebsite

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 ...
Alex's user avatar
  • 38k
1 vote
2 answers
2k views

Octopack only creating one of two artifacts in TeamCity using Octopus deploy

I have a multiple project solution and am using Octopus Deploy and TeamCity for deployment. I have installed the Octopack NuGet package on two projects that I wish to be created as artifacts during ...
Declan McNulty's user avatar
1 vote
1 answer
272 views

OctopusPublishPackageToHttp in TFS Service

I am trying to get my build configured in the TFS Service to deploy my .nuget package to my private,hosted nuGet server. I am using NuGet.Server.v2.2.31210.9045 for my nuGet Server. The build ...
WayneB's user avatar
  • 73
1 vote
2 answers
3k views

What do I need to execute a SQL Server PowerShell module

I am creating an Octopus deploy that installs a windows service on a remote server. I am re-using a template from a web deploy project that sets up the web services and web application (on other ...
Seamus Barrett's user avatar
1 vote
1 answer
4k views

Error SQL72018: Database Options could not be imported

I am deploying an MVC Project along with a database using Octopus. When the step for deploying the database is hit I'm getting the following error: An error occurred during deployment plan generation....
Michelle's user avatar
  • 231
0 votes
1 answer
1k views

Updating XML node even if it's empty

I've got the following powershell code that updates xml nodes with values from Octopus Deploy. foreach($key in $OctopusParameters.Keys) { $myXPath = "$nodeXPath/$($key.Replace(".", "/"...
Chase Florell's user avatar
0 votes
2 answers
2k views

Using variable which contains $ as password

I'm trying to deploy something through Octopus V4 and in my project variables, I got a password in which I have the special character $. Assigning this Octo variable to a PowerShell variable will ...
Traffy's user avatar
  • 2,823
0 votes
0 answers
380 views

Can't target staging slot Octopus

I have set up a deployment in Octopus with the intention of blue/green deployments. I have tried two different approaches but neither of them seem to be taking any notice of the slot I have set up for ...
onesixtyfourth's user avatar