octopus-deploy

Can I create a nuget package without a project file

不想你离开。 提交于 2019-12-11 03:54:07
问题 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 the build against the compiled files, so if we used the octopack tool, the packaging happens too early in our build process for us. We will end up with a folder of e.g. mywebsite_QA and mywebsite_UAT, each containing the correct config files, etc, and it is thesefolders that we wish to deploy. I

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

ε祈祈猫儿з 提交于 2019-12-11 03:16:27
问题 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. I'm using SQL Azure and DACFX. I'm curious if anyone else has tried this... Is Start-AzureSqlDatabaseCopy the right PS cmdlet to use for this operation? Will this effect the performance of my production environment? Are there any other options to consider? Update I developed the below script,

TFS 2012 not copying transformed Web.Config to _PublishedWebsite

妖精的绣舞 提交于 2019-12-11 01:49:53
问题 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, un-transformed version. This is causing problems when using Octopack, since it packs everything in the _PublishedWebsites\ folder to deploy, thus, I'm getting an un-transformed file in my deployment Is there

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

依然范特西╮ 提交于 2019-12-06 19:50:43
问题 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] Cleaning Z:\hgbuilds\IT\Build\packages [12:10:40][Step 2/2] pack: Create NuGet package from UI\UI.Tour\UI.Tour.Web\UI.Tour.Web.csproj (14s) [12:10:40][pack] NuGet command: C:\BuildAgent\tools\NuGet.CommandLine.2.2.1.nupkg\tools\NuGet.exe pack Z:\hgbuilds\IT\UI\UI.Tour\UI.Tour.Web\Calrom.UI

Powershell in NonInteractive mode

本小妞迷上赌 提交于 2019-12-06 17:07:41
问题 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 ($process in $processes) { $prc = Get-Process -Name $process -ErrorAction SilentlyContinue if (-not($prc -eq $null)) { Write-Host "Stopping " $prc.ProcessName Stop-Process -InputObject $prc -ErrorAction SilentlyContinue } } The programs I try to stop are not the ones you see in the script above, but they

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

我们两清 提交于 2019-12-06 02:34:02
问题 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't get build-in Octopus variables to be substituted. Here's an example of of XML section in web.config: <appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> <add key="environmentTransform" value="" /> <add key="EnvironmentVariable1" value="$OctopusEnvironmentName"

Create Nuget package for Dacpac and Powershell script

丶灬走出姿态 提交于 2019-12-06 02:26:00
问题 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 script essentially deploys the dacpac to Octopus Deploy. I have the pieces, but I'm not sure how to put them together! 回答1: Are your Powershell script and dacpac in the Visual Studio project? If not, you may not need to include VS in the process. You can use either OctoPack or the NuGet command

How to exclude a subdirectory and contents from a nuget package

允我心安 提交于 2019-12-06 01:34:43
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? You're quite close. Try this: <files> <file src="..\Web\Views\**\*.*" exclude="..\Web\Views\DontWantThis\*" target="Web\Views" /> </files> I was able

Powershell job with alternate credentials from Octopus Deploy

我的梦境 提交于 2019-12-05 11:22:28
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. The archive needs to be done under different domain credentials because it's on a network share. The frustrating this is that the code below works locally, but when run off the tentacles, it fails with the error ----------------------------------------------------[ Backup Nupkg ]---------------------------------------------------- Storing a backup version of GeoSphere.1.2.1.1722.nupkg for the

Integrating Octopus Deploy and Dynamics CRM

前提是你 提交于 2019-12-05 11:11:21
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? lazarus You can import solution programmatically using ImportSolutionRequest class. Check this link 来源: https:/