[Buildbot-devel] env variables from last step

Benoît Allard benoit.allard at greenbone.net
Fri Nov 7 10:33:07 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/07/2014 08:39 AM, Kevin Funk wrote:
> 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.
> 

I believe this is indeed a common trouble. Think "virtualenv", or
think Microsoft's "vcvarsall.bat".

Would you mind trying to elaborate Github Pull-Request with that ? I'd
be glad to assist you, would you need so !

Regards,
Ben.

- -- 
Benoît Allard (B30A05B0)|Greenbone Networks GmbH|http://greenbone.net
Neuer Graben 17, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJUXJ/fAAoJEHZCfVOzCgWwsZEIAJ0s/naWCeWniq+dW7kOty+a
lMAlh+0QLNCQBhSqD+3mUW4pbR1CIwjYE8ebg0hHgLo4d1l1gYXTJGDq+eMIiA9T
9vLK23ifa1gn14MMuCgJHF3RC0zfINNvRgf6guOaF2mIJq3qcd2n7M0CmuF8SF+X
VeiP5gkQZ/ZSrZwddXKLf6j4ELLKFe8KT56GHZigawyBRbFgoqdFriPbQ3ek+RIA
+kLY0XgDiWlRgAg5V1SjR7kFTibNFIb+YA/dhix4AW29ewjSkOZ+Wk3qpidezuIh
Kg2VoF7/1FF27WP5pQwdCPA6UFboFOsP9IW6Rk8TShD40GteS3eiOoCJO8BPjLM=
=QjNu
-----END PGP SIGNATURE-----




More information about the devel mailing list