Commit Graph

121 Commits

Author SHA1 Message Date
Harald Welte b258f0cfc8 build both openggsn (old) and osmo-ggsn (new) in nightly feeds
Change-Id: I310c6237ce5ec34e4cc008123a5219d5cadaf7a3
2017-09-06 10:55:52 +02:00
Harald Welte f73c1c50f0 change from openggsn to osmo-ggsn in nightly nitb-split packages
Change-Id: Ie0d6d39ad0451733f6577844737f63028d087d8e
2017-09-06 09:36:42 +02:00
André Boddenberg 6cbb843fa3 Change used protocoll for 'git ls-remote' call from https to git.
Otherwise script depends on availability of https://git.osmocom.org, which is currently down.

Change-Id: Icf2a6b425177ef24aef1dba6e270d36fdc05d214
2017-09-04 20:23:30 +02:00
Neels Hofmeyr 7b58ee9985 debian nightly: don't use pre_release branches, use master
Related: OS#2297
Change-Id: I15e114389095af381978201c1bb3aad2a51fbaaa
2017-09-03 00:54:44 +02:00
Alexander Couzens ff6ea23be5 scripts: add requirements.txt to list jenkins-job-builder
Change-Id: If25ce84593bbf6a393928a8f4e1670f320c48ca4
2017-08-26 05:55:32 +00:00
Alexander Couzens 31f7e2a762 osmocom-nightly-nitb-split.yml: schedule the job to be run at midnight
Change-Id: I0d80e7d260f9092f44d4d80471a4dd67b7acc839
2017-08-26 05:55:32 +00:00
Max 81bde16fb0 Add value string termination check from libosmocore
The script by Neels Hofmeyr <nhofmeyr@sysmocom.de> has actually nothing
to do with libosmocore itself - it's a generic build-time check used by
jenkins so it should be part of this repo to avoid extra checkout of
libosmocore just for this script.

Change-Id: I079218b61f512975ec5bfc7dc23503ec369cbb5a
2017-08-18 18:08:16 +00:00
Alexander Couzens 315944495c add jenkins job builder files for osmocom-nightly-nitb-split.sh
jenkins job builder is a python library to write jenkins jobs in .yml or
.json including templating and basic substition operation.

To update the job call:
Create your own jenkins_jobs.ini based on the exmaple and call
jenkins-jobs --conf ./jenkins_jobs.ini update osmocom-nightly-nitb-split.yml

Change-Id: Ie7c655c6e0e3761e7970e479cadb5ae14faa2c1c
2017-08-15 18:11:29 +02:00
Alexander Couzens a0d34c1b8d create osmocom-nightly-nitb-split.sh based on osmocom-nightly-packages.sh
Create a snapshot of the nitb split and upload it to OBS.

Change-Id: I8bf9fce1547e98c44b62a693ac4aaa4beed1aef9
2017-08-15 17:13:14 +02:00
blobb efcf6881a2 Introduce artifacts holding dependencies to speed up builds.
Basically, osmo-build.sh holds logic to check whether the necessary
artifact is available. If so it fetches artifact, unpacks it and
triggers the actual build. In case the necessary artifact is not
available osmo-build.sh simply builds all dependencies from source
by using osmo-build-dep.sh and archives deps to the ARTIFACT_STORE
afterwards.

The necessary functions to determine the artifact name from remote and
local repositories as well as the handling of artifact files live in
osmo-artifacts.sh, which is sourced by osmo-build.sh.

osmo-build.sh will be sourced by the contrib/jenkins.sh build script
inside each git repository. This automatically triggers the build,
so one need to source at the end of each jenkins.sh script.

See jenkins-openBsc.sh [1] for more details.

Artifacts will be stored as follows:

	$ARTIFACT_STORE/$JOB_NAME/<dep_1>.<branch_1>.<rev_1>_...
		..._<dep_n>.<tag_n>.tar.gz

Furthermore, ARTIFACT_STORE environment variable has to be set on all
jenkins slaves. The JOB_NAME variables is injected to each jenkins job
by jenkins.

[1] https://github.com/blobbsen/diy-artifacts/blob/master/jenkins-openBSC.sh

Change-Id: Ifee0a2f837d23b19aa5326f810234d5452e47484
2017-07-28 14:41:51 +00:00
Max 09b2ec93f1 lc15: correct default master branch
Change-Id: I6e86edc34fdb8c7bc57f87c41e05dd2338dd2506
Related: SYS#3683
2017-06-19 13:09:36 +02:00
Max 1f512a6b25 Add script for fetching BTS-specific L1 headers
Several of the supported BTS models require hw-specific L1 headers for
compilation which are stored in separate repository. Instead of
copy-pasting code which obtains those header for each BTS it's better to
create separate script.

Change-Id: I840533d5bf9233822bc0534a25c252f1cab0a7b0
Related: SYS#3682
2017-06-15 11:34:21 +02:00
Neels Hofmeyr 5977e23db7 osmocom-nightly-packages.sh: add osmo-hlr 2017-03-14 15:28:22 +01:00
Neels Hofmeyr 75ac11a784 osmocom-nightly-packages.sh: chmod a+x 2017-03-14 15:21:10 +01:00
Neels Hofmeyr dccc24b9b3 add script to submit nightly packages
Move the script here from
http://jenkins.osmocom.org/jenkins/job/Osmocom_nightly_packages/
The jenkins job shall call this script instead.

One change: instead of 'rm -rf *', rather check for an empty dir, to not
endanger valuable data a user may have around when invoking this script out of
curiosity.
2017-03-14 15:12:52 +01:00
Neels Hofmeyr a0a2e0ffa7 scripts/osmo-deps.sh: show complete git hash of cloned HEAD revision
Change-Id: I0e1a65d864b075bd1dbfb579d308631f745d6937
2016-12-11 01:02:07 +01:00
Neels Hofmeyr 5044f45935 scripts/osmo-deps.sh: set -ex to log actions and exit on error
Change-Id: Ic61a51bd639e44cbb19ec67a90ab04825e512314
2016-12-11 00:58:00 +01:00
Neels Hofmeyr c4ce20a93e cosmetic: osmo-build-dep.sh: print example on error
I've been asked at least twice what the contents of the expected env
vars should be, so log an example on error.

Change-Id: I635752e6033c57bfce90d8b0732bc402bf3014c8
2016-11-30 02:45:41 +01:00
Neels Hofmeyr 315e5929f5 add osmo-build-dep.sh from openbsc/contrib/jenkins.sh
Change-Id: I73669753a0f5030575d21e90378a1285cfe898de
2016-10-06 22:47:52 +02:00
Neels Hofmeyr 79480b6f81 add cat-testlogs.sh
Change-Id: I2d145cb9ca636ba42194f797b5f4d59437cea131
2016-09-27 01:34:20 +02:00
Holger Hans Peter Freyther 483c54f0ab Initial commit for a CI repository 2016-04-24 11:24:30 +02:00