Nightly Builds » History » Revision 11
Revision 10 (msuraev, 01/26/2017 03:49 PM) → Revision 11/59 (neels, 04/20/2017 10:04 PM)
{{>toc}} h1. Nightly Builds sysmocom has setup nightly Debian source package builds for Osmocom GSM related software. Starting from March 18, 2016, there are daily builds for * Debian 8 Debian7.0 (i586, amd64) * xUbuntu 16.04 (i586, amd64) * xUbuntu 16.10 (i586, amd64) and Debian8.0 (amd64). The Osmocom jenkins will build source packages once a day and upload them to the Open(SUSE) Build Service (OBS). See https://jenkins.osmocom.org/jenkins/job/Osmocom_nightly_packages/ for corresponding build job. The nice people of SuSE have created the "network:osmocom" project for us and we have created the "network:osmocom:nightly" sub-project. The Jenkins will upload source packages for: * libosmocore * libosmo-abis * libosmo-netif * libosmo-sccp * libsmpp34 * openbsc * openggsn * osmo-pcap * osmo-stp (cellmgr-ng) * osmo-bts * osmo-trx * osmo-pcu * osmo-sip-connector The OBS page is at https://build.opensuse.org/project/show/network:osmocom:nightly It's possible to reproduce the nightly builds locally using <pre> osc co osc build </pre> To test local changes with nightly infrastructure one can create local packages the same way jenkins job above does: <pre> gbp buildpackage -S -uc -us --git-ignore-new --git-export-dir=/tmp </pre> and than repeat build steps outlined above for local build. The download repositories are at: Debian 7.0 repository is at http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_7.0 * The Debian 8.0 repository is at http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ Adding the repository to your system Debian 7.0 * http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_16.04/ <pre> * http://download.opensuse.org/repositories/network:/osmocom:/nightly/xUbuntu_16.10/ sudo su wget http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_7.0/Release.key sha256sum Release.key => 487d3c309facae16e83b3863bc042033fd02c41eb7183ced196d83225abb5729 apt-key add Release.key echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_7.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list apt-get update exit </pre> Adding the repository to your system Debian 8 system: 8.0 <pre> sudo su wget http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/Release.key sha256sum Release.key => 487d3c309facae16e83b3863bc042033fd02c41eb7183ced196d83225abb5729 apt-key add Release.key echo "deb http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_8.0/ ./" > /etc/apt/sources.list.d/osmocom-nightly.list apt-get update exit </pre> h2. E-Mail Notifications of build failures Build failure notifications are sent to the high-noise OpenBSC gerrit-log Mailing List <gerrit-log@lists.osmocom.org> There seems to be no easy way in OBS to register an e-mail address (such as a mailing list) that gets notified in case of build errors. What we ended up doing is to * register an OBS user account "openbsc-list" with e-mail address of the openbsc mailing list * include that account with a 'reader' role in the OBS "openbsc:nightly" project * set the OBS user notification preferences of that "openbsc-list" user to include "Package has failed to build" for "reader" "reader role.