[users at bb.net] Failed gitpoller on bitbucket using only_tags=True

Uung Bhuwono uung at 88spares.com
Mon May 1 13:55:20 UTC 2017


Hi Pierre,

Confirmed that #{} suffix did come from bitbucket

I tried to run "git ls-remote -t git at bitbucket.org:bitbcuket/project.git"
where I only have 1 tag v0.1, bitbucket return with two tag which last one
is tag v0.1 with #{} suffix

I'm using git 2.9.3

On Mon, May 1, 2017 at 8:25 PM, Pierre Tardy <tardyp at gmail.com> wrote:

> Hi Uung,
> Looking in more details at the code, I can't find any place where buildbot
> adds this #{} suffix.
> Buildbot parses the result of git ls-remote
> https://github.com/buildbot/buildbot/blob/master/master/
> buildbot/changes/gitpoller.py#L139
>
> Could you run this command on bitbucket to see if this is bitbucket which
> is sending those #{} ?
>
> what version of git client are you using?
> Pierre
>
> On Mon, May 1, 2017 at 3:14 PM Uung Bhuwono <uung at 88spares.com> wrote:
>
>> Hi Pierre,
>>
>> Thanks for your hint
>>
>> I notice for refspec for each tag has two string on branches list in
>> gitpoller
>>
>> 1. +refs/tags/v0.1:refs/buildbot/https%3A%2F%2Fbuildbot%3password%
>> 40bitbucket.org%2Fbitbucket%2Fproject.git/refs/tags/v0.1
>> 2. +refs/tags/v0.1^{}:refs/buildbot/https%3A%2F%2Fbuildbot%3password%
>> 40bitbucket.org%2Fbitbucket%2Fproject.git/refs/tags/v0.1^{}
>>
>> I notice there's "^{}" in the end (I'm not really familiar with git
>> fetch and not sure what this mean)
>> I tried to use git fetch and #2 gave me "fatal: Invalid refspec"
>> So I tried to remove refspec that has pattern on #2, gitpoller work fine
>> but it didn't deploy latest tags on my repo
>>
>> Has anyone use only_tags with bitbucket?
>>
>> Thanks,
>>
>> On Sun, Apr 30, 2017 at 2:43 PM, Pierre Tardy <tardyp at gmail.com> wrote:
>>
>>> Hi Uung,
>>> I am not sure exactly what could be your problem. I know that some
>>> people are using the only_tags option as this was a recently contributed
>>> feature.
>>>
>>> I would make sure you have a recent version of git on the worker. Maybe
>>> this is why git is clashing with the strange refsspecs.
>>>
>>> There are currentl several people working on updating the change hook
>>> for bit
>>> There is this PR: https://github.com/buildbot/buildbot/pull/2530 and I
>>> know Bill Deegan is working on it for Scons.
>>> http://www.baddogconsulting.com/
>>>
>>>
>>> On Thu, Apr 27, 2017 at 11:14 AM Uung Bhuwono <uung at 88spares.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I set my buildbot to do auto deployment each time there's new tag from
>>>> my git repo on bitbucket
>>>> Following that I've wrote in master.cfg for gitpoller
>>>>
>>>> c['change_source'].extend(changes.GitPoller(
>>>>     source_root + name + '.git', workdir=work_dir + name,
>>>>     only_tags=True,
>>>>     pollinterval=18 + i*60) for i, name in enumerate(projects))
>>>>
>>>> **I've declare vars work_dir, name and projects on top of my master.cfg
>>>>
>>>> When I look into my twistd.log, got following error invalid refspec
>>>> when buildbot trying to pull tag
>>>>
>>>> ['https://buildbot:password@bitbucket.org/bitbucket/project.git',
>>>> '+refs/tags/v0.1:refs/buildbot/https%3A%2F%2Fbuildbot%3password%
>>>> 40bitbucket.org%2Fbitbucket%2Fproject.git/refs/tags/v0.1',
>>>> '+refs/tags/v0.1^{}:refs/buildbot/https%3A%2F%2Fbuildbot%3password%
>>>> 40bitbucket.org%2Fbitbucket%2Fproject.git/refs/tags/v0.1^{}',
>>>> '+refs/tags/v0.2:refs/buildbot/https%3A%2F%2Fbuildbot%3password%
>>>> 40bitbucket.org%2Fbitbucket%2Fproject.git/refs/tags/v0.2',
>>>> '+refs/tags/v0.2^{}:refs/buildbot/https%3A%2F%2Fbuildbot%3password%
>>>> 40bitbucket.org%2Fbitbucket%2Fproject.git/refs/tags/v0.2^{}'] in
>>>> /src/88/gitpoller/project on repourl https://buildbot:password@
>>>> bitbucket.org/bitbucket/project.git failed with exit code 128: fatal:
>>>> Invalid refspec '+refs/tags/v0.1^{}:refs/buildbot/https%3A%2F%
>>>> 2Fbuildbot%3password%40bitbucket.org%2Fbitbucket%2Fproject.
>>>> git/refs/tags/v0.1^{}
>>>>
>>>> How can I make buildbot work to listen for new push tag on my repo?
>>>>
>>>> Thanks in advance,
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> users at buildbot.net
>>>> https://lists.buildbot.net/mailman/listinfo/users
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170501/9b86f64f/attachment.html>


More information about the users mailing list