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

Bailey, Darragh dbailey at hp.com
Tue Dec 21 16:20:42 UTC 2010


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




More information about the devel mailing list