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

Derek Taylor dtaylor at datascaler.com
Wed Feb 4 18:37:03 UTC 2009


Axel,

Thanks for the reply.

My problem was in thinking it should use 'HEAD'.  I was passing this in
through the "Force Build" web page.  When I leave the field blank, it works
as you suggest.

Derek

On Wed, Feb 4, 2009 at 2:47 AM, Axel Hecht <l10n.moz at googlemail.com> wrote:

> It seems to me from looking at the srouce that it should actually reset to
> FETCH_HEAD in 0.7.7 and beyond,
> http://github.com/djmitche/buildbot/commit/bc53d760b75d89299c879e08f65c4fd99ad5506e#diff-2.
> Which works perfectly fine for me locally.
>
> The only exception would be if the given revision in your build was
> explicitly HEAD, though I don't know how that would happen.
>
> Axel
>
> 2009/2/4 Derek Taylor <dat at datascaler.com>
>
>> 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
>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with
>> Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code
>> to
>> build responsive, highly engaging applications that combine the power of
>> local
>> resources and data with the reach of the web. Download the Adobe AIR SDK
>> and
>> Ajax docs to start building applications today-
>> http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>
>>
>


-- 
Derek Taylor
Director of Engineering
DataScaler Inc.

201A Ravendale Drive
Mountain View, CA  94043
650-515-3447
408-702-5442 (m)
dtaylor at datascaler.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20090204/ff0a10cf/attachment.html>


More information about the devel mailing list