If I create a deployment process that includes custom deployment scripts, and the environment being deployed to has a single quote in the name, the scripts fail:
Deploying package ‘C:\Octopus\Files\MyPackage.2015.7.13.112301.nupkg-85491518-20ea-4e8a-80bc-7ebff7e55922’ to machine 'https://x.y.z.a:10933/'
Deploying package: C:\Octopus\Files\MyPackage.2015.7.13.112301.nupkg-85491518-20ea-4e8a-80bc-7ebff7e55922
Using variables from: C:\Octopus\Work\20150713174117-7\Variables.json
At C:\Octopus\Applications\Mark’s dev environment\MyPackage\2015.7.13.112301
_1\Bootstrap.Octopus.Action.CustomScripts.PreDeploy.ps1:590 char:125
- … s.PreDeploy.ps1’
-
~
The string is missing the terminator: '.
+ CategoryInfo : ParserError: ( [], ParseException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
At C:\Octopus\Applications\Mark’s dev environment\MyPackage\2015.7.13.112301
_1\Bootstrap.Octopus.Action.CustomScripts.Deploy.ps1:598 char:122
- … ipts.Deploy.ps1’
-
~
The string is missing the terminator: '.
+ CategoryInfo : ParserError: ( [], ParseException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
At C:\Octopus\Applications\Mark’s dev environment\MyPackage\2015.7.13.112301
_1\Bootstrap.Octopus.Action.CustomScripts.PostDeploy.ps1:598 char:126
- … .PostDeploy.ps1’
-
~
The string is missing the terminator: '.
+ CategoryInfo : ParserError: ( [], ParseException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString