Hiding login and password values in net use command
I have an environment that has two variables, LOGIN and PASSWORD, assigned to a project. Both variables are defined as Type: Standard Variable, Action: Assign Hidden, On Project: Suppress Display, Value: <value>. When I execute the following net use command, it appears that ${LOGIN} and ${PASSWORD} are not being read in. What am I missing? I am using Build Forge 7.1.3.2 and am attempting to copy the file between 2 Windows servers.
net use g: /delete
net use g: \\11.222.33.44\f$ ${PASSWORD} /user:testserver02\${LOGIN}
copy e:\projects\Test.zip g:\deployment_package
net use g: /delete
net use g: /delete
net use g: \\11.222.33.44\f$ ${PASSWORD} /user:testserver02\${LOGIN}
copy e:\projects\Test.zip g:\deployment_package
net use g: /delete
One answer
If an assign hidden variable is detected, it will not expand any variables in that command. Otherwise the password would be echoed into the build log.
~Spencer
~Spencer
I have an environment that has two variables, LOGIN and PASSWORD, assigned to a project. Both variables are defined as Type: Standard Variable, Action: Assign Hidden, On Project: Suppress Display, Value: <value>. When I execute the following net use command, it appears that ${LOGIN} and ${PASSWORD} are not being read in. What am I missing? I am using Build Forge 7.1.3.2 and am attempting to copy the file between 2 Windows servers.
net use g: /delete
net use g: \\11.222.33.44\f$ ${PASSWORD} /user:testserver02\${LOGIN}
copy e:\projects\Test.zip g:\deployment_package
net use g: /delete