[Buildbot-devel] buildbot, git, and tags

Dan Kegel dank at kegel.com
Thu Nov 15 22:44:26 UTC 2012


So, I'm happily puttering away on my big fat buildbot example,
and noticed that I can't simply ask buildbot to get v2.7.1 of
the sources for gnu hello via git.  v2.7.1 is a tag, not a branch,
so buildbot's git wrapper is completely confused by this.

There is one bug about better handling of tags,
http://trac.buildbot.net/ticket/998
And here's another example of someone needing buildbot to handle tags
differently; he just uses a shellcommand to grab the right tag.
http://element34.ca/saunter/build-pipelines-with-buildbot

But hang on, I don't want to hard code the tag name in
the factory.  Anyone know how I can retrieve the branch name
from the build in a buildstep, so I can construct a shell command
to check out that tag?




More information about the devel mailing list