Problem with variable encoding when deploying child release

I am using the Octopus-provided “Deploy a Release” step to deploy a child project, and have run into an issue with how variables are passed. I would like to pass the installation directory of one of the parent packages to the child, so I have added a variable to the step:

InstallationDirectoryPath = #{Octopus.Action[DeployWeb].Output.Package.InstallationDirectoryPath}

When I try to deploy my parent release, it fails on this step with the error:

Bad JSON escape sequence: \P. Path 'InstallationDirectoryPath', line 1, position 34.

I assume this is because the variable has a value like C:\Program Files\...

Is this something I can work around with a different configuration, or is it a bug that needs to be fixed in the step template?

Hi Mike,

Thanks for getting in touch.

I have been able to reproduce the error you are seeing, it is a bug in the step template. I have created a GitHub issue that you can track and contribute to:


1 Like

Thanks, Shane! I appreciate it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.