[Buildbot-devel] Setting up buildbot with Git. Failed 'git-fetch'
dtaylor at datascaler.com
Wed Feb 4 01:50:17 UTC 2009
I'm setting up buildbot for the first time. Our sources are in Git, stored
In my master.cfg:
f1 = BuildFactory()
f1.addStep(Git(repourl=("git at github.com:<repo>.git")))
I tested this from the web interface, using "Force Build"
The build starts and the log file shows the following sequence of git
git-reset --hard HEAD
The git-reset --hard HEAD fails with "Failed to resolve 'HEAD' as a valid
This failure occurs, because the fetch doesn't seem to pull down any files.
I typically do a 'git pull' or a 'git clone' to do that. (I'm a fairly new
git user, so I may be missing some of the finer points here.)
To get the buildbot to work, I modified slave/commands.py to execute a 'git
pull' instead of a 'git fetch' and then it works fine. Of course, I didn't
really want to modify the buildbot sources and I suspect there is something
else I should be doing.
Did anyone else have this problem? How should I be setting up my
BuildFactory to get the sources correctly?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel