Strange parsing of custom log messages

Hi guys,

I just encountered a strange behavior using custom log messages. I wrote a C# console application to set the deploy directory for the binaries created by our CI build. The target directory is

\srv016\ci_deploy\DevBuilds\nightly

Therefore I print

@@continua[setVariable name=‘DeployDirectory’ value=’\srv016\ci_deploy\DevBuilds\nightly’]

to the console of that application. It seems that the “\n” in this path is evaluated as a new line character as the step to create the directory fails with this error message:

5:26:14 AM    Create Deploy Directory
5:26:14 AM        Failed to create directory at path ‘\srv016\ci_deploy\DevBuilds
ightly\DevBuilds
ightly’. Illegal characters: [
] in path. Parameter name: \srv016\ci_deploy\DevBuilds
ightly\DevBuilds
ightly

As you can see only the \n was converted and even the \ was not converted to a single backslash.

Our environment:

Windows Server 2012 R2
ContinuaCI 1.7.0.102

Regards

Kay Zumbusch

Hi Kay

This was fixed in in the beta version recently. Backslashes need to be escaped, so \ becomes \.

In the beta, this will work :

@@continua[setVariable name=‘DeployDirectory’ value=’\\srv016\ci_deploy\DevBuilds\nightly’]

Here’s the change history for the beta, which is very close to being released.

https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.7.1

Hi Vincent,

thanks for the update. We’ll try upgrading to 1.7.1 as soon as it is released. For now we will add an underscore in front of “nightly” to work around the problem.

Regards

Kay Zumbusch