Updating environment variables from a task

How can I execute a task, say a batch script, which modifies the environment variables, and have FB pick up the changes? I have a setup script for our project, which everyone uses to configure the local environment for a given branch of a project. I’d need to run that as one of the initial tasks, but I don’t know how I can make it grab any changes to the environment and apply them to future tasks. I could run it before starting FB of course, but then I can’t use the FB CCNet task on the build server.

/axl

Hi Andreas,

Maybe your batch script could write the environment variables to an INI file which you can then read in with the Read INI File action in FinalBuilder?

.t8

Thanks, I’ll try that.

I ended up writing a batch file which first sets up the environment and then calls the fbcmd.exe with the passed arguments. My environment changes include path order, and all sorts of settings that would be a lot of work to import into every fb script.

Cheers,
/axl