[Buildbot-devel] How to use the basedir of a buildbot slave in the commands for a builder?

Bill Deegan bill at baddogconsulting.com
Thu Jan 27 19:57:09 UTC 2011


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




More information about the devel mailing list