1 OpenAFS Buildbot Master Configuration
2 =====================================
4 Buildbot master installation
5 ----------------------------
7 The following instructions describe how to use `pip` to install the buildbot
8 master in a Python virtual environment. With sudo/root access, install Python3
9 and the development packages for it.
11 Ensure TCP ports 9989 and 8010 are open. Create a `buildbot` user on the
12 system. The remaining steps to not require sudo access and should be run as
15 Optionally create a project level directory, for example:
17 $ mkdir openafs-buildbot
20 Create a Python virtual environment:
22 $ python3 -m venv venv
24 Activate the virtual environment for the installation:
26 $ source venv/bin/activate
28 Install buildbot and it's dependencies:
30 $ pip install --upgrade pip
31 $ pip install 'buildbot[bundle]'
33 Create the buildbot master instance:
35 $ buildbot create-master master
37 The virtual environment can now be deactivated:
44 Download the buildbot master configuration:
46 $ git clone https://github.com/openafs-contrib/afsbotcfg.git
49 Create the `Makefile` and deploy the buildbot `master.cfg` and
50 sample `settings.ini` file:
55 Make a link to the makefile in the top level directory:
58 $ ln -s afsbotcfg/Makefile
63 Edit the `settings.ini` file in the `master` directory. This file stores
64 information we do not track with git, such as the buildbot worker passwords.
65 The `settings.ini` file is an INI-style file with the following sections:
67 * local - settings specific to the local environment
68 * admins - the list of user emails and passwords for authenticated access
69 * email - emails for notifications
70 * workers - the list of worker names and passwords
74 $ cat master/settings.ini
76 buildbotURL = http://buildbot.openafs.org:8010/
79 tycobb@yoyodyne.com = password
82 example-worker-1 = secret1
83 example-worker-2 = secret2
88 The buildbot master needs an account on the [OpenAFS Gerrit][3] to listen for
89 Gerrit events and to report verified changes on successful builds. The name of
90 the account is `buildbot`. Place the ssh keys for the buildbot's Gerrit account
91 in the `.ssh` directory under the home directory of the local account running
92 the buildbot master. The key file name should match the ones defined in the
98 Check the buildbot master configuration with the command:
102 Start the buildbot master with the command:
106 Stop the buildbot master with the command:
110 [1]: https://buildbot.openafs.org/
111 [2]: https://openafs.org
112 [3]: https://gerrit.openafs.org/