-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set workerbuilddir? #86
Comments
AFAIK, it is not included in Buildbot-travis yet. You can easily add the feature yourself in the code. workdir = self.build.getProperty("workdir", "")
if workdir:
if isinstance(workdir, util.Interpolate):
workdir = workdir.getRenderingFor(self.build).result
workdir = self.workdir + '/' + workdir
else:
workdir = self.workdir and then add step = ShellCommand(name=name, description=command, command=command, doStepIf=not self.disable) so it looks like this: step = ShellCommand(name=name, description=command, command=command, doStepIf=not self.disable, workdir=workdir) Once you have performed these changes, you'll be able to set your build directory in the environment variable of your env:
global:
- workdir=/path/to/your/workdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For my builds to work, I need to leverage one of buildbot's features, namely customize the
workerbuilddir
. I am testing Ansible roles and the name of the directory has to be the name of the role in order for ansible to find the role in itsrole_path
. However, the defaultworkerbuilddir
isbuild
.How do I set
workerbuilddir
in buildbot-travis?The text was updated successfully, but these errors were encountered: