[Buildbot-devel] triggering builds based on git tags

Amber Yust ayust at yelp.com
Sat Jan 15 17:43:16 UTC 2011


The category parameter would probably be ideal in this case, since tags
aren't necessarily tied to a particular branch. Then your ChangeFilter on
the receiving end can look for builds of that category to run on the special
builders.

I'd use a post-receive hook in Git to look for a new tag (something of the
form "0000000..[0-0a-f]{7} refs/tags/.*") and run buildbot sendchange -
which does require the master half of the buildbot packages to be installed.

~Amber

On Sat, Jan 15, 2011 at 7:07 AM, Charles Lepple <clepple at gmail.com> wrote:

> [please keep the list CC'd. thanks.]
>
> On Jan 15, 2011, at 9:59 AM, Jason Edgecombe wrote:
>
> > On 01/14/2011 10:28 PM, Charles Lepple wrote:
> >> On Jan 14, 2011, at 9:01 PM, Jason Edgecombe wrote:
> >>
> >>> I would like to trigger special build scripts when a tag is
> >>> created in
> >>> git. This would be to produce a published release. The releases
> >>> would
> >>> use special slaves.
> >>>
> >>> How might I accompilsh the automatic triggering of special builds
> >>> when a
> >>> new git tag is created?
> >> I don't know if the GitPoller looks for tags, but there's always the
> >> notion of writing an "update" hook script (in the Git repository)
> >> that
> >> runs "buildbot sendchange" when it sees a new tag.
> > sounds promising. Would the category parameter need to be used to
> > flag that this is a release?
>
> I haven't used the category parameter. Someone else might have
> thoughts on that.
>
> I would probably just use a separate builder (possibly using the same
> buildslaves, but with whatever extra steps are necessary for a release).
>
> >  I'm also trying to figure out how to have the git hook communicate
> > with the buildmaster on a separate host without having to install
> > the buildbot software.
> >
> > How much of the buildbot software need to be installed to run
> > "buildbot sendchange"?
>
> At the moment, I think it's the master side (plus at least the core of
> Twisted).
>
> --
> Charles Lepple
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110115/1c21072a/attachment.html>


More information about the devel mailing list