[Buildbot-devel] Setting up buildbot with Git. Failed 'git-fetch'

Derek Taylor dat at datascaler.com
Wed Feb 4 01:56:41 UTC 2009


I'm setting up buildbot for the first time.  Our sources are in Git, stored
on github.com.

In my master.cfg:

f1 = BuildFactory()
f1.addStep(Git(repourl=("git at github.com:<repo>.git")))
f1.addStep(Compile(command=["./build.sh"]))

I tested this from the web interface, using "Force Build"

The build starts and the log file shows the following sequence of git
operations:

git-init
git-fetch
git-reset --hard HEAD

The git-reset --hard HEAD fails with "Failed to resolve 'HEAD' as a valid
ref."

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?

Thanks!

Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20090203/440580b0/attachment.html>


More information about the devel mailing list