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

Uung Bhuwono uung at 88spares.com
Mon May 1 13:14:49 UTC 2017

Hi Pierre,

Thanks for your hint

I notice for refspec for each tag has two string on branches list in

1. +refs/tags/v0.1:refs/buildbot/https%3A%2F%2Fbuildbot%3password%40bitbuck
2. +refs/tags/v0.1^{}:refs/buildbot/https%3A%2F%2Fbuildbot%3password%

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?


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%40bitbuck
>> et.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%40bitbuck
>> et.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/db6b98b8/attachment.html>

More information about the users mailing list