[yocto] autobuilder repourl by commit

Flanagan, Elizabeth elizabeth.flanagan at intel.com
Wed Apr 23 10:16:42 PDT 2014


Hi Jate,

So, I'm going off current master. I would probably check out the
current master branch as we made a lot of changes in how we dealt with
source stamps between now and dora.

On Wed, Apr 23, 2014 at 9:20 AM, Jate S <jatedev at gmail.com> wrote:
> I am on yocto-autobuilder dora branch. I would like my Nightly
> scheduler check out some layers using the 'hash' repo setting. The
> default behavior seems to be that a nightly build does not receive
> 'commit_layername' information, and thus the CheckOutLayers object
> just uses the HEAD.

So, in master on my dev cluster at
http://dev-ab-master.yoctodev.org:8010/builders/nightly/builds/9

I'm using a buildset-config/nightly.conf that contains:

[nightly]
....
repos: [{'poky':
            {'repourl':'git://git.yoctoproject.org/poky',
             'layerversion':{'core':'meta', 'yoctobsp':'meta-yocto-bsp'},
             'hash': '4b5e855670bddb0ffc4cc7b24005e53e3eefcd69'}},

That *seems* to be working ok. If you can update to master, that
should fix things, although this should also work in the dora branch.

Be warned, if you do update, there are some additional
autobuilder.conf options you'll need to add:

[GitSettings]
OPTIMIZED_GIT_CLONE = True
OGIT_TRASH_DIR = /tmp/yocto-autobuilder/git/trash
OGIT_MIRROR_DIR = /tmp/yocto-autobuilder/git/mirror

>
> Where might I go about passing these properties in so that
> CheckOutLayers will use my 'hash' setting?
>
> - Jate S.
>
> On Thu, Apr 17, 2014 at 2:09 PM, Flanagan, Elizabeth
> <elizabeth.flanagan at intel.com> wrote:
>> Jate,
>>
>> You can use the 'hash' property. Just make sure you have no other
>> branch/tag properties in the repo description.
>>
>> So, something like this should work:
>>
>> repos: [{'poky':
>>             {'repourl':'git://git.yoctoproject.org/poky',
>>              'hash':'7831ae829103ab283645'}},
>>
>>
>> On Thu, Apr 17, 2014 at 10:23 AM, Jate S <jatedev at gmail.com> wrote:
>>> I am customizing the Yocto autobuilder for my own project. I would like to
>>> specify a checksum for the repourl for poky. What property do I need to add?
>>> I have tried adding the property commit, but it does not appear to work.
>>>
>>> Thanks,
>>>
>>> - Jate S.
>>>
>>
>>
>>
>> --
>> Elizabeth Flanagan
>> Yocto Project
>> Build and Release



-- 
Elizabeth Flanagan
Yocto Project
Build and Release



More information about the yocto mailing list