Buildbot

From Buzztard

Jump to: navigation, search

Contents

Introduction

To check the builds for buzztard you can use the Buildbot system. With the help of such system many clients, called builbots, can build the project on several platforms.

In this mini HowTo we will guide you to setup the buildmaster and buildslave on one PC. This PC is the buildmaster and has its own buildslave to build the project.

Download and install

You can download the Buildbot system from sourceforge or use distribution packages:

Simply follow the instructions on how to install the buildbot script. In the following sections we refer to the gentoo installation.

Create user

For safety you may create a user for your system. We call this user the buildbot user and create this with our unix administration tool.

The buildbot master and slave daemon should run as this user. This user should also own all files related to the buildbot system.

Buildmaster

The buildmaster is the system which holds all informations about the several build slaves and to show the HTML page of the buildsystem.

Create buildmaster

The buildmaster should store the files in a directory called master directory. For our choice we use

~builbot/master/buzztard

To create the build master directory layout with sample files you can choose the following command

buildbot create-master ~builbot/master/buzztard

Configure the buildmaster

The configuration file for the buildmaster can be found in the buildmaster directory:

~builbot/master/buzztard/master.cfg

There is a sample after creating the buildmaster called master.cfg.sample which is a good starting point to configure the buildmaster.

Setup project information

Here you can setup the project name, the url where the buildmaster can be found and the project URL.

Set the project name:

c['projectName'] = "Buzztards buildbot" 

Set the project backlink URL:

c['projectURL'] = "http://buzztard.org/"

Set the buildmaster URL:

c['buildbotURL'] = "http://141.57.8.70:8010/"

Under this URL the HTML page of the buildmaster can be found. Use you own IP adress and port where small HTTP server of the buildmaster system should stay on.

Setup connectivity for the slaves

In this step we configure our buildslave which can be connect to the buildmaster.

You can configure here more than once:

c['bots'] = [("firstslave", "slavepasswd")]

Where firstslave is the name of the first slave (you can see it as the slave user name). The slavepasswd is the password for this slave.

Buildslave

FIXME

Problems

  • we don't have a good working way to trigger builds from cvs commits on sf.net repository (we can't install the buildbot software there to do buildbot sendchange)
  • the irc bot fails to connect to quakenet.org, but works on e.g. freenode.org
  • the irc bot does not report build results automatically

Links

Support Us

Collaboration

SourceForge Logo
GStreamer Logo
Become a Friend of GNOME
Linux Sound Logo
MediaWiki
Valgrind
GNU Library Public Licence
GNU Free Documentation License 1.2