[Buildbot-devel] Is it possible to retrieve 'workdir' property directly?

Amber Yust ayust at yelp.com
Tue Dec 21 17:11:08 UTC 2010


Judging from past tickets, it's a "just use SetProperty" kind of thing:

http://trac.buildbot.net/ticket/614

<http://trac.buildbot.net/ticket/614>~Amber

On Tue, Dec 21, 2010 at 8:20 AM, Bailey, Darragh <dbailey at hp.com> wrote:

>
> Trying to setup some builds to be run via buildbot where I have a number of
> checkout steps that retreive both the source to be build and a number of
> tools to be used in the building process. Basically ant+ivy.
>
> As part of the compile step I'd like to modify the environment to set PATH
> to include the path to the ant startup script and some additional
> environment variables that configure ant such as ARG_ARGS to point to the
> ivy jar file, and some http options to set the required http proxy values.
>
> To update the PATH I need to get the workdir on the slave and append a path
> to it. For this I've using WithProperties.
>
> Here's what I'm starting with (basic, ignoring any additional options that
> I could pass to the jvm running ant)
>
>  env={
>     'PATH': WithProperties("${PATH}:%s/build_tools/ant/core/bin",
> "workdir"),
>     'ANT_HOME': WithProperties("%s/build_tools/ant/core", "workdir"),
>     'ANT_ARGS': WithProperties("-lib %s/build_tools/ant/ivy/bin/ivy.jar",
> "workdir")
> }
>
> Right now I'm running into an exception due to workdir not being defined in
> the default properties dictionary.
>
> Is there a property, which would point to the work dir on the build slaves,
> that can be used in this case, available within buildbot, or is it a case of
> go use SetProperty?
>
>
> --
> Regards,
> Darragh Bailey
>
>
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google
> Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20101221/9a181df1/attachment.html>


More information about the devel mailing list