This is often a source of confusion. %Configuration.TestVar% refers to the Configuration Variable. The Configuration and Project variables are not changed by the build. When the build is initialised, Continua copies the Configuration and Project variables to Build variables. All subsequent changes to variables during the build are to the Build variables. You need to use %TestVar% to access the Build variable. See Build Variables.