Jenkins » History » Revision 10

« Previous | Revision 10/11 (diff) | Next »
laforge, 02/08/2020 12:16 PM
no more freebsd

Continuous Integration with Jenkins


The Osmocom Cellular Infrastructure software stack has grown to a size where it make sense to somehow track the state after each commit. The Jenkins Software allows us to do this. The installation can be found at and all of Osmocom is tracked there. The goal is to have all projects/repositories of the osmocom umbrella tracked there.

We are happy if people donate CPU time to be used as additional nodes (Build Slaves) to execute the compile jobs. Please contact if you want to donate some.


We are using Jenkins in a Docker container. Currently there are several build slaves, primarily a peair of Debian GNU/Linux 8 and 9 LXC containers on amd64 on each of the physical build hosts.

See also [[osmocom-servers:Jenkins_Node_Setup]]

Jenkins Job Builder

Initially we used manually-configured jenkins jobs using the Jenkins Web UI. With a lot of projects, it's easy to introduce inconsistency and becomes difficult to maintain. Instead, we step by step migrated to using Jenkins Job Builder which allows us to describe build jobs in YAML syntax. You can find our job descriptions at - and as always, contributions are welcome.

Custom Build Helper Scripts

If you look into the jenkins job configuration of the individual jobs, you will notice that they use a custom helper script that is part of each Osmocom projects' git repository: contrib/ (for an example, see

This contrib/ expects that some common helper scripts from are in your PATH at the time of execution. The common helper scripts (such as or Those helpers perform tasks similar to all osmocom projects, i.e. clone/update a dependency in the workspace of a build node. The script will try to git-clone, git-fetch, git-reset --hard the dependency.

Building code like jenkins build slave would do it

During development, it sometimes is useful to build the code just like it is built on the jenkins build slave.

If you would like to do that, you should
  1. git clone git://
  2. set your shell PATH to include the osmo-ci/scripts directory
  3. set the MAKE environment variable to your make command (make or gmake)
  4. go to the root directory of the respective project git repo (e.g. libosmo-netif)
  5. execute ./contrib/
Files (0)

Updated by laforge about 4 years ago · 10 revisions

Add picture from clipboard (Maximum size: 48.8 MB)