I am having a problem with the Custom deployment scripts section. I am wanting to create a post deployment script so have a couple of steps doing a Copy-Item (it’s with powershell) then on a new line I want to run an .exe with a few commands. This all works within powershell but the variable is getting chucked off when saving. So the below is what I want to type:
C:\Octopus\Applications\DevelopmentIntegration\Deployment.Console$OctopusParameters[‘Octopus.Action[Deployment Package].Package.NuGetPackageId’]\KssDeploymentTool.exe -up-ps -con-ps $ConnectionStringPS
But when I click save, it goes to just:
C:\Octopus\Applications\DevelopmentIntegration\Deployment.Console$OctopusParameters[‘Octopus.Action[Deployment Package].Package.NuGetPackageId’]\KssDeploymentTool.exe -up-ps -con-ps
Can someone please tell me why the last bit is being removed?? The -up-ps is a typical valid powershell option for a module (or .exe in this situation)…