[Buildbot-devel] How to use the basedir of a buildbot slave in the commands for a builder?
Amber Yust
ayust at yelp.com
Thu Jan 27 21:07:59 UTC 2011
You could add a SetProperty step beforehand that sets a property with the
working directory (so that you can WithProperties() it into arguments):
factory.addStep(shell.SetProperty(command="pwd", property="base_dir"))
followed by something like...
WithProperties("%(base_dir)s" + ("\%s\build\buildsys\mk.bat"))
~Amber
On Thu, Jan 27, 2011 at 11:57 AM, Bill Deegan <bill at baddogconsulting.com>wrote:
> Greetings,
>
> I had one win32 build slave, and now I've added a second , they're
> configured at different base directories.
>
>
> For various reasons I need to use full path into the build directories.
> Is there a way I can use the base dir from the build slave automaticcally?
>
>
>
> builder.addStep(Compile(command=[r'D:\home\builds\buildbot\winbld05\%s\build\buildsys\mk.bat
> CLUMP=yes PARALLEL=3 -k '%branchName],
> env={'DFT_BUILD_ROOT':
> 'D:\home\builds\buildbot\winbld05\%s\build'%branchName },
> timeout=3600))
> builder.addStep(ShellCommand(command=[r'perl
> -ID:/home/builds/buildbot/winbld05/%s/build/
> D:/home/builds/buildbot/winbld05/%s/build/dftrun.pl
> --list'%(branchName,branchName)],
> env={'DFT_BUILD_ROOT':
> 'D:/home/builds/buildbot/winbld05/%s/build'%branchName,
> 'DFT_TEST_OUTPUT':
> 'd:/home/builds/buildbot/winbld05/%s/build/output/test'%branchName,
> },
> description='Check dfts',
> timeout=3600))
>
>
> Can I replace "D:/home/builds/buildbot/winbld05" with
> "$buildslave_base_dir" or something like that?
>
> Thanks,
> Bill
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> 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/20110127/507bf0b6/attachment.html>
More information about the devel
mailing list