Double backslashes are converted to a single one when variables are passed between builds

I have one build that starts a second one when it’s successful. One of the variables passed from the first build to the second one is a UNC path. The first build has the correct value starting with \. The second build only has one backslash, which, of course, causes all copy/move operations to fail. Using Continua 1.8.0.243

Hi Miruna,

We have not been able to reproduce this. I assume that you have mapped the variable in the trigger Variables tab - e.g. uncpathvar: %uncpathvar%? In our tests the variable is unchanged in the output from a Log Entry action and when used in a Copy action. Where can you see that the variable is changed?  Can you send us your build log?

Can you also let us know how the variable is set up? 

I took a closer look. The value gets set in the first build from a FinalBuilder 8 script through a “Continua CI - Set Variable” action. This is actually where the slash is lost. The second build getting triggered from this one is irrelevant.

Continua log snippet containing the embedded FB log:

9:10:32 AMLog Variable Values [Variables: archiveLocation,buildDir]
9:10:32 AMCurrent variable values :
9:10:32 AMarchiveLocation = \v-buildserver\builds\Workflow\11.0 Builds_SUCCEEDED
9:10:32 AMbuildDir = \v-buildserver\builds\Workflow\11.0 Builds
9:10:32 AMSuccess
9:10:32 AMContinua CI - Set Variable - [FinalBuilderScriptStatus]
9:10:11 AMVariable ‘%finalbuilderscriptstatus%’ has been set to ‘SUCCEEDED’.
9:10:32 AMContinua CI - Set Variable - [ArchiveLocation]
9:10:11 AMVariable ‘%archivelocation%’ has been set to ‘\v-buildserver\builds\Workflow\11.0 Builds_SUCCEEDED’.

(Side note: i find it weird that the log lists actions with timestamps 20 seconds before the action above).

The “Continua CI - Set Variable” action just sets “archiveLocation” to FinalBuilder’s %archiveLocation%.

The FinalBuilder log itself looks like this:
@@continua[setvariable name=‘ArchiveLocation’, value=’\v-buildserver\builds\Workflow\11.0 Builds_SUCCEEDED’ skipIfNotDefined=‘true’]

Hi Miruna,

Which version of FinalBuilder are you using? We adedd backslash escaping to the ContinuaCI logger for FinalBuilder in v8.0.0.1351 and v7.0.0.3472. 

8.0.0.1432

Hi Miruna,

I checked with the Finalbuilder team and the fix was actually implemented four weeks ago so you would need to install the latest version 8.0.0.1864.


Will do. Thanks for looking into it.