[Buildbot-devel] env variables from last step

Kevin Funk kevin.funk at kdab.com
Fri Nov 7 07:39:45 UTC 2014


On Wednesday 05 November 2014 13:08:55 Nachaat Hassis wrote:
> Hello,
> im facing this problem:
> I have an executable which sets for me many env variables (can't change
> that since its a tool which comes with a workbench).
> is there a way to execute that executable and run the next step in the same
> env?
> 
> thanks for your help,
> cheers.

Heya,

There's a pretty generic and working solution I've been using for several 
months already. This solution is basically extracting the current env of a 
step into a property (using SetProperty + some extract_fn), which can then 
just be reused in consecutive steps.

It has been discussed on SO: http://stackoverflow.com/a/17721123

PS: I'm all for bringing some native support for this in Buildbot itself, 
though. I think it's a fairly valid use-case.

Cheers

-- 
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions




More information about the devel mailing list