[Buildbot-devel] setting environment variables in build steps
Axel Hecht
l10n.moz at googlemail.com
Thu Nov 22 18:07:50 UTC 2007
2007/11/22, Stefan Seefeld <seefeld at sympatico.ca>:
> 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'.)
That works for me on 0.7.6 without a problem. At least for
ShellCommands and their subclasses. I occasionally subclass
LoggingBuildStep directly, for those I need to hack up WithProperties
support for workdir by hand.
> * 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
> slave.
This is http://buildbot.net/trac/ticket/126, and the patch there works for us.
Axel
More information about the devel
mailing list