[Buildbot-devel] Global Environment

Razvan Lupusoru lupusoru at cse.ohio-state.edu
Thu Dec 11 18:35:48 UTC 2008


Hello, I want to have global environment variables that exist all 
throughout the life of a factory.
For example, I am trying to set INSTALL_PATH as a variable that I want 
to use later in my code. The way I am trying to do this is:

compileAndBuildFactory.addStep(ShellCommand(description='Checking 
environment', command=["/bin/env"], env={'INSTALL_PATH': 
'/srv/export/testing/$NOWINSTALLPATH/`svnversion`'}))

There are four problems with this solution:
1) I cannot add an environment variable without explicitly running a command
2) The INSTALL_PATH variable is not existent for the rest of the steps
3) The $NOWINSTALLPATH variable is treated as a string instead of 
actually using a previously declared variable
4) `svnversion` is also treated as a string and does not run as a command

Ideas on how I can fix any of these problems?

Thank you,




More information about the devel mailing list