BuildForge Help

Using the .set and .bset Commands to Change Variables

Since the .set command modifies the master database record for an environment variable, a .set command that modifies a project variable has no effect on the current job, but can be used by succeeding jobs when they make their own copies of the project variables. If a .set command changes a step environment variable, succeeding steps see those changes because those steps retrieve their values from the master database record. The .set command cannot act on variables that do not already exist when the command executes.

The .bset command modifies the job record; use it when you want to modify the project environment variable values for the current job only. The .bset command has no effect on the master database record for a variable. You can also use the .bset command to create a new variable during the job.

See Changing Environment Variable Values During a Job for more information on using the .set and .bset commands.