[Buildbot-devel] setting environment variables in build steps

Stefan Seefeld seefeld at sympatico.ca
Thu Nov 22 17:03:00 UTC 2007

Trying to set environment variables in build steps I have ran into a
variety of issues, which I'd like to raise here instead of the tracker,
in case I'm missing something:

* I couldn't figure out how to refer to the 'workdir' variable during
build-step creation. (IIUC, this variable is initialized per builder and
then propagated to build-steps (slave-side). It doesn't appear to be
available through 'WithProperties'.)

* As a workaround, I tried to use the equivalent of
  'make check ALF_LIBRARY_PATH=`pwd`'. This works, if I pass the command
as a string, to shell.Test(). If I pass it as a token-list, `pwd` gets
passed verbatim, i.e. isn't evaluated during command invocation by the
shell. I'm not sure what happens. While I'm not sure which of the two
ways is considered correct, I think everybody agrees that both ways
(strings, token-lists) should result in the same command issued on the



      ...ich hab' noch einen Koffer in Berlin...

More information about the devel mailing list