Jenkins alternative : Buildbot

from this website : https://www.blazemeter.com/blog/jenkins-vs-other-open-source-continuous-integration-servers

Buildbot is another software development continuous integration tool which is trusted by the Mozilla Foundation for bringing excellence into their products, and is now used at Mozilla, Chromium, WebKit and many other projects.

Buildbot started as a lightweight alternative to Mozilla Tinderbox and currently it’s a fully functional continuous development and build server supporting a lot of integrations, distributed builds, custom (and often unique) build steps, notifications via multiple channels and many more.

Buildbot is a Python-based tool, and as such, it runs everywhere Python runs. You can deploy it onto any POSIX-compliant operating system. Moreover, Buildbot config files are basically Python scripts, meaning that the configuration is version-control friendly and you have all the power of the Python language while defining your build plan. It means extreme and unbeatable flexibility and capabilities.

As for July 2016, Buildbot supports out of the box:

Version Control Systems:
Mercurial
Subversion
Git
CVS
Perforce
Bzr
Repo
Gerrit
Monotone
Darcs
Builders:
Command-line
Configure (autoconf-style projects)
Compile (C projects)
VC++ (Microsoft compilers)
Robocopy
Test (analogue of make test)
TreeSize – check repo size
Perl Module Test
Mysql-test-run
Notifications
Email Notification
IRC Bot
PBListener
HTTP Status Push
Gerrit Status Push
Github Status Push
Stash Status Push

Buildbot installation and configuration is a separate large topic as the instructions may differ depending on each operating system and architecture, so it is better to refer to Buildbot documentation. However if you’re looking for quick and dirty way to get it running and see if it fits your needs, here are minimal instructions:

Install Python. Most Linux and MacOSX distributions come with Python, on Windows you’ll have to install it manually. Make sure you have at least the 2.7.X version.

Make sure you have the following binaries in your PATH (on Windows they should be located under the “Scripts” folder of your Python installation):

Python itself
pip – a Python package management system
Easy install – a script which simplifies installation of Python packages
Run the following commands:
pip install buildbot – installs the Buildbot master (or server)
buildbot create-master /path/to/buildbot/working/folder – sets up some of the initial configuration for the buildbot server

pip install buildbot-worker – installs the Buildbot worker
buildbot-worker create-worker worker localhost:9989 example-worker pass – creates the Buildbot agent with default parameters

Start the Buildbot server: buildbot start /path/to/buildbot/working/folder .
Start the Buildbot slave: buildbot-worker start worker .
Open the following url in your browser: http://localhost:8010 (unless you changed it to something different in the master.cfg file).
If you plan to run a JMeter test, add a Builder such as:

factory.addStep(steps.ShellCommand(command=[« c:/jmeter/bin/jmeter.bat -n -t c:/buildbot/Test.jmx -l C:/buildbot/test.jtl »]))

to your master.cfg file.

Here is the Buildbot dashboard with one build currently running along with the history of several previous test executions:

Increase image

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *