octopus-deploy

Can I specify the user who is creating a release?

青春壹個敷衍的年華 提交于 2019-12-25 14:47:15
问题 When using create-release can I specify the user who is creating the release independent of the user I'm using to execute octo.exe ? The scenario in mind is our build server will begin a build based on a push (and it knows who made the commit), but as far as Octopus Deploy is concerned the build server created the release, and not the person who committed. 回答1: We use an Octopus Service Account with an API Key, and we call it build-deploy-bot . This is the account that TeamCity uses to create

What do I need to execute a SQL Server PowerShell module

こ雲淡風輕ζ 提交于 2019-12-24 08:14:21
问题 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 servers). It has an extra step that deploys database scripts to update the schema and stored procedures etc. This step is executed on the web server using SQL Server PowerShell tools (apparently). I need to incorporate that as well into my project. The folks who set up the original project are long

How to exclude a subdirectory and contents from a nuget package

天涯浪子 提交于 2019-12-22 10:34:46
问题 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 WantThis2 ... (lots more) Scripts I'm trying to exclude the "Dontwantthisfolder" So my nuspec looks like this: ... <file src="..\Web\Views\**\*.*" exclude="**\Dontwantthis\**" target="web\Views" /> ... It's not working though, I still get the "Dontwantthis" folder. Anyone know how I can achieve this? 回答1: You're quite close. Try this: <files>

Integrating Octopus Deploy and Dynamics CRM

和自甴很熟 提交于 2019-12-22 06:45:01
问题 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 Solutions using a powershell script or wcf service, rather then someone manually navigating to the site and go through the motions.(we have dev,test and prod environments) I can't seem to find a non UI method of doing this online. Can anyone suggest a better solution then using the UI? 回答1: You can

How to set system variable value in Octopus Deploy from PowerShell

不羁的心 提交于 2019-12-13 15:06:21
问题 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 this variable in email body, but unfortunately it is empty. <p>#{Octopus.Release.Notes}</p> Is it possible to set Octopus Deploy system variable value from PowerShell and use it in the next step? I am using Octopus Deploy 3.7.11. EDIT: I have also tried the cmdlet Set-OctopusVariable and it did not

Publish nuget package during TeamCity build to Octopus

安稳与你 提交于 2019-12-12 10:41:25
问题 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 (there is a number of bug reports about it). There was an alternative solution suggested in the comments to this question. The idea is to push your current build nuget package to the Octopus

How to exclude a folder from a nuget package

て烟熏妆下的殇ゞ 提交于 2019-12-12 07:44:32
问题 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, but haven't had any luck. The nuget file builds, but the folder is still there. Sadly, all the examples on the net specific file types and not folder. <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> <id>Foo</id> <title>Foo</title>

Error SQL72018: Database Options could not be imported

冷暖自知 提交于 2019-12-12 01:39:25
问题 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. Deployment cannot continue. Error SQL72018: Database Options could not be imported but one or more of these objects exist in your source. at Microsoft.SqlServer.Dac.DacServices.CreateController(SqlDeployment deploymentEngine, ErrorManager errorManager) at Microsoft.SqlServer.Dac.DeployOperation.

Can't target staging slot Octopus

允我心安 提交于 2019-12-11 23:54:15
问题 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 it. The two approaches are: deploy to staging swap slots or deploy to staging deploy to production for both of these I have the Deployment Slot set: but neither deploy seems to take any notice of it. If I change the name to anything else i.e. -stagingslot the deployments fail. The logs I get

OctopusPublishPackageToHttp in TFS Service

北慕城南 提交于 2019-12-11 07:18:57
问题 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 successfully creates the nuget package via OctoPack. I can push to my nuGet repository with the following command (dummied up some values): nuget push AppyThingy.1.0.4816.37140.nupkg -s http://nuget.myserver.com:1601 01414ad3-3e0c-4ba4-9dae-04e62ff4d0f0 That works swimmingly! I added the following to my