Collecting pip\r\n Downloading https:\/\/files.pythonhosted.org\/packages\/0f\/74\/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4\/pip-10.0.1-py2.py3-none-any.whl (1.3MB)\r\n 100% |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 1.3MB 165kB\/s\r\nInstalling collected packages: pip\r\n Found existing installation: pip 8.1.2\r\n Uninstalling pip-8.1.2:\r\n Successfully uninstalled pip-8.1.2\r\nSuccessfully installed pip-10.0.1\r\n<\/pre>\nOnce the pip is installed and updated to the latest version we can proceed with the Buildbot installation. Execute the following command to install Buildbot with pip:<\/p>\n
sudo pip install 'buildbot[bundle]'<\/pre>\nIf the installation is successfully completed you should see something like this:<\/p>\n
Installing collected packages: Twisted, PyJWT, future, buildbot-www, buildbot-worker, buildbot-console-view, buildbot-waterfall-view, buildbot-grid-view, buildbot\r\n Running setup.py install for Twisted ... done\r\n Running setup.py install for future ... done\r\nSuccessfully installed PyJWT-1.6.1 Twisted-18.4.0 buildbot-1.1.1 buildbot-console-view-1.1.1 buildbot-grid-view-1.1.1 buildbot-waterfall-view-1.1.1 buildbot-worker-1.1.1 buildbot-www-1.1.1 future-0.16.0\r\n<\/pre>\n<\/span>4. Verify the Buildbot installation<\/span><\/h2>\nTo verify if Buildbot has been correctly installed type:<\/p>\n
sudo buildbot --version<\/pre>\nBuildbot version: 1.1.1\r\nTwisted version: 18.4.0\r\n<\/pre>\n<\/span>5. Create a new system user for Buildbot<\/span><\/h2>\nWe will create a new system user and group which will run our Buildbot services:<\/p>\n
sudo adduser --home \/opt\/buildbot --shell \/bin\/bash buildbot<\/pre>\n<\/span>6. Configuring the Buildbot Master<\/span><\/h2>\nNow that we have Buildbot installed we can continue and create and configure our first Buildbot master.<\/p>\n
Before continue with the next commands switch to the new buildbot user by typing:<\/p>\n
sudo su - buildbot<\/pre>\nTo create the Buildbot master run the following command:<\/p>\n
buildbot create-master master<\/pre>\nThe output should look something like this:<\/p>\n
mkdir \/opt\/buildbot\/master\r\ncreating \/opt\/buildbot\/master\/master.cfg.sample\r\ncreating database (sqlite:\/\/\/state.sqlite)\r\nbuildmaster configured in \/opt\/buildbot\/master\r\n<\/pre>\nCopy the default sample Buildbot configuration file by using the following command:<\/p>\n
cp master\/master.cfg.sample master\/master.cfg<\/pre>\nIf you want to be able to access the Buildbot’s web interface on your server IP address or domain you need to change the BuildbotURL setting in the configuration file.<\/p>\n
Open the configuration file:<\/p>\n
nano master\/master.cfg\r\n\r\nc['buildbotURL'] = \"http:\/\/your_ip_or_domain:8010\/\"\r\n<\/pre>\nDo not forget to replace your_ip_or_domain with your actual domain or IP address.<\/p>\n
Once you save the file run the following command to verify the master configuration:<\/p>\n
buildbot checkconfig master<\/pre>\nIf everything is ok you should see the following output:<\/p>\n
Config file is good!<\/pre>\nTo start the Buildbot master run the following command:<\/p>\n
buildbot start master<\/pre>\nIf there are no errors you should see the following output:<\/p>\n
Following twistd.log until startup finished..\r\nThe buildmaster appears to have (re)started correctly.<\/pre>\nOnce the Buildbot master is started you can access the web interface at:<\/p>\n
http:\/\/yor_ip_or_domain:8010\/<\/pre>\n