[Buildbot-commits] [Buildbot] #998: git_buildbot.py ignores tags

Buildbot buildbot-devel at lists.sourceforge.net
Wed Sep 29 09:44:04 UTC 2010


#998: git_buildbot.py ignores tags
----------------------+-----------------------------------------------------
Reporter:  chrb       |       Owner:           
    Type:  undecided  |      Status:  new      
Priority:  major      |   Milestone:  undecided
 Version:  0.8.1      |    Keywords:           
----------------------+-----------------------------------------------------
 git_buildbot.py currently ignores tags ("Ignoring refname
 `refs/tags/TEST': Not a branch"). We have a build process that generates
 package versions from tags, so when tags are pushed the packages should be
 rebuilt. I hacked git_buildbot.py to do this:

 {{{
         m = re.match(r"^refs\/tags\/(.+)$", refname)
         if m:
             logging.info("Tag detected: %s"%refname)
             c = {'revision': m.group(1),
                  'comments': 'tag %s'%m.group(1),
                  'branch': m.group(1),
             }
             c['category'] = 'default'
             c['repository'] = unicode(repository, encoding=encoding)
             c['who'] = 'The Tagger'
             c['files'] = ['none']
             changes.append(c)
         else:
 }}}

 Obviously hardcoding "commit" details like this is a poor solution but it
 works. It would be nice to have proper support for tags in git_buildbot,
 so that the correct commit details are passed on.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/998>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list