Commit Graph

239 Commits

Author SHA1 Message Date
Harald Welte 9f2f265e3b add script to create virtual machine with kernel gtp ggsn for qemu-kvm
Change-Id: Id9f1aee5d4158024517bc8e3884929b9efd1343e
2018-06-03 13:29:05 +02:00
Pau Espin cd23e09f36 ansible: Document docker login step
This step requires manual interaction since a password will be asked.

Change-Id: I193c721490c115a17c2f6753b3b139d7dc33aa39
2018-05-25 12:16:09 +02:00
Alexander Couzens acfaecc008 ansible: add a simple README.md
Change-Id: I96057bb92faa8e3375c5bad20ef1536475807b67
2018-05-24 16:35:33 +02:00
Alexander Couzens 8508b81403 ansible: gsm-tester: add jenkins to the dialout group
To access tty*

Change-Id: Icc7b3fa9ca7c14360d78069d8d42e6039afda32b
2018-05-24 16:29:29 +02:00
Alexander Couzens c5dd87a811 ansible/setup-gsm-tester: add docker
Change-Id: Idfd96c4e3556b93ca85acb94a2176ec269a906d1
2018-05-24 16:23:23 +02:00
Pau Espin 2f1d4deb71 jobs: osmo-gsm-tester-runner: Add ttcn3 job
Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
2018-05-18 13:42:01 +02:00
Pau Espin de4816f77a jobs: osmo-gsm-tester-builder: Add new job to build osmocom-bb
Change-Id: I4b390e34719503a5d0a50e6392b1ceeb3a9cb730
2018-05-17 18:16:37 +02:00
Pau Espin a4a89c79fe osmo-gsm-tester-builder: notify unstable builds
Change-Id: I5a1d7b5e1af5b4fbd12effa870542df2d6be7647
2018-05-07 01:03:31 +02:00
Alexander Couzens f82c367858 osmocom-nightly-packages: replace version string with by git-version-gen
E.g. old version 0.10.2.20180501 (0.10.2 last deb version,
20180501 was the date)

The new version will look like 0.10.2.279.178b
 - 0.10.2 is the last tag
 - .279 is 279 commits since the tag
 - 178b is the actual short git rev

The direct output of ./git-version-gen couldn't be used because
debian forbids using a minus (-) in upstream versions.

Change-Id: I2da90ada90adf8ef8f8cfee3d26f86fbd3cec181
2018-05-04 00:31:07 +00:00
Alexander Couzens 6da3fe8e8b jobs: remove old job Osmocom_nightly_nitb_split
It's not any more used, neither does the job even work, because
the split file got already removed.

Change-Id: I6e85d6384f2a377f1ebe0e06c9ca92a594050eec
2018-05-02 16:56:38 +02:00
Alexander Couzens 6ea2ec3a76 jobs: osmocom-obs: add support for the nightly build
Change-Id: I59929b4025210e1143e4d09bcfc59f91c81f0d20
2018-05-02 16:56:09 +02:00
Alexander Couzens 0fd4e7d429 jobs: osmocom-obs: introduce template var type
In preparation for the nightly jobs

Change-Id: I315215eb1d5ade257262d0717711c11f3787319f
2018-05-02 16:56:09 +02:00
Alexander Couzens efbe93e789 jobs: rename osmocom-obs-latest.yml -> osmocom-obs.yml
Prepare to template nightly and latest in one file

Change-Id: If080cca2ab51a7aab9c85da9f07c51179134f8c6
2018-05-02 16:50:49 +02:00
Alexander Couzens 212b01a468 jobs: Osmocom_latest_packages: change node to obs
obs node label have the credentials to access OBS

Change-Id: Ifaaa8a9cb2ddddf399e108b2516017a8d60d1d88
2018-05-02 16:47:44 +02:00
Pau Espin bf8ee94485 scripts: osmocom-*-packages.sh: Build libusrp
Depends on: I5ff1d76f533b9ac68ab3f2c70ead6b66f4413b4f

Change-Id: Ic742db854b8a3aba6ddc85ffb41fc6f4697c572d
2018-04-26 19:49:43 +02:00
Alexander Couzens 68c3ca0203 osmocom-jenkins-slave: install graphiz
Change-Id: Iad1f10d057475ca15bc3104b5c97fa57e29db15e
2018-04-24 11:26:24 +02:00
Alexander Couzens 9e0367a2e8 jobs: update-osmo-* remove old build nodes
Change-Id: Ia7f98e55895b150da473a38a3e68b188acd0e76a
2018-04-24 11:26:24 +02:00
Alexander Couzens 5c5cca5266 jobs: update-osmo*: remove non-existent node build2-deb8build
The jobs will stall when trying to handle a non-existent node

Change-Id: Id9f25d8a5f6d0521e2b70884f46de5dee14d8092
2018-04-24 09:22:47 +00:00
Harald Welte 3f4289b35c master-builds: Add rtl-sdr
As rtl-sdr is gaining a ./contrib/jenkins.sh script, we can now also
use it just like our other projects, with a template-generated
"master-rtl-sdr" jenkins job, which can replace the old manually-created
"rtl-sdr" jenkins job.

Change-Id: Ia59f12f31d332bda09242fff1d3e215e8cadc915
2018-04-19 00:20:14 +02:00
Pau Espin 8e48f3d75e jobs: bts&pcu: lc15: fetch branch litecell15 instead of litecell15-next
Branch nrw/litecell15-next doesn't exist anymore in the remote of that
repository (https://gitlab.com/nrw_litecell15/litecell15-fw).

Change-Id: I162e81573d7aafc0b2e2e1d2ab90cacc7cbb90d7
2018-04-17 17:13:07 +02:00
Alexander Couzens bd20389e49 scripts/docker-cleanup.sh: set permissions to 755
It will otherwise not executed by the cron, because the cron
is checking for the executable bit

Change-Id: Ie9d67b157d62b38b62f5e74406d14344f90d07b8
2018-04-16 16:33:08 +02:00
Alexander Couzens b6bb7258a0 ansible: osmocom-jenkins-slave: fix crontab for fstrim
Change-Id: Ib6aae8d1d986346dc7bc0fc945bab6491fff4f3f
2018-04-16 16:30:24 +02:00
Pau Espin 28eff46deb jobs: gerrit-osmo-ttcn3-hacks: Make deps before cleaning
make clean has subdir/Makefile as dependency. As a result,
subdir/gen_links.sh and subdir/makefile-regen.sh are called, and
ttcn3_makefilegen in there fails because the dep symlinks are done
against missing files (because git repos in deps have not been checked
out).

Additionally, since 61c11e9234b3f9e087aba94380892ab66abc1191 make
deps-update is equivalent to make deps since the dependency tracking
system was improved, so we can remove it as it's not needed anymore.

Change-Id: I07fee78bba5b07c7f3f4359869e00ef2583e0769
2018-04-14 11:40:04 +00:00
Alexander Couzens a2f86fb5be osmocom-jenkins-slave: call fstrim periodically
Change-Id: I82c497f476abf43148e8d7c027f53b87b5a738fb
2018-04-11 21:28:47 +00:00
Alexander Couzens bdfc5f9fdf ansible: gsm-tester-bts: add OBS osmocom:nightly to install osmocom utilities
Useful for admininistrators.

Change-Id: I7b704d402c83db54401d1c06acb715cce821f2e4
2018-04-11 21:28:31 +00:00
Alexander Couzens c9aa32161b ansible: gsm-tester: install sispmctl to control usb power sockets
Change-Id: Ie1af197d4b24e25196e10d2afa3ab8eea73ad729
2018-04-11 21:28:31 +00:00
Alexander Couzens 3b29270ff5 ansible: gsm-tester-modems: improve name
Use same scheme as of gsm-tester-bts.
This should improve readability.

Change-Id: I4186baaf565442c96555b723622c93b1cbd9f4f7
2018-04-11 21:28:30 +00:00
Alexander Couzens 5791cfd9db ansible: gsm-tester: move usrp tasks to gsm-tester-bts
Change-Id: I9caebed94c3473051b82e2cdc35f6dfb9f862084
2018-04-11 21:28:30 +00:00
Alexander Couzens 692f1f1221 ansible: gsm-tester-bts: install ip.access dependencies
Change-Id: I47f578c4b9bb7b1dc81ccf93a7e82a335f6968a2
2018-04-11 21:28:30 +00:00
Alexander Couzens 9464e66c91 ansible: setup-gsm-tester: use udhcpd as dhcp server
Required for ip.access
Change-Id: I5ae43ebcd3c87e625110d8ff6afa0476f4b1facf
2018-04-11 21:28:30 +00:00
Alexander Couzens 717531ac98 ansible: add role udhcpd: setup a udhcpd server
Change-Id: Ia272ae9c2b245d0a06f84b91f50dd875d4488e02
2018-04-11 21:28:30 +00:00
Alexander Couzens 1b528d6527 ansible: hosts: gsm-tester: use ansible_host to have more readable ansible output
Change-Id: Ia7b60ace8afd0e2cc47c535da1856d4f34fdd735
2018-04-11 21:28:29 +00:00
Alexander Couzens 156990fb07 jobs: master-builds.yml: allow osmo-gsm-manuals to build anywhere
When https://gerrit.osmocom.org/#/c/7725/ has been merged, there
is no need to limit this build to OsmocomApi.

Change-Id: Ic5fe39b643e7a15dbfd2efd55dce78dde30cf099
2018-04-11 16:51:24 +00:00
Alexander Couzens fd5b9fd097 osmocom-jenkins-slave: install gsm-manual dependencies
Change-Id: I3fa60bd986220e065b1e9eca4308f2b089d505d9
2018-04-11 16:51:24 +00:00
Harald Welte acdde1617b add docker-cleanup.sh script
This script should be executed regularly on all build slaves that
have docker in order to discard unused images/layers.  It would
be a good idea to call "fstrim /" afterwards in order to get more
SSD performance.  However, the latter requires root access, and hence
cannot be called by the 'osmocom-build' user and thus jenkins.

Maybe we should install it as a cron job or systemd periodic timer job?

Related: OS#3144
Change-Id: I688b952578507a9cc28fe682221b5c7e3a245519
2018-04-11 06:07:12 +00:00
Alexander Couzens 3e9d6ad7fd jobs: update-osmo-* reformat a list to be human readable
Change-Id: Ic64463d3974fdbf3967e67a77c75490d7ca80fb7
2018-04-11 06:01:24 +00:00
Alexander Couzens bff2750755 jobs: gerrit-osmo-ttcn3-hacks: execute the job on a ttcn3 node
Only ttcn3 nodes have the eclipse-titan compiler installed

Change-Id: If946af8fa3f7bd2d13914c9895d3f74b58fdef24
2018-04-10 18:58:06 +02:00
Alexander Couzens 56b2a5a723 ansible: docker: cleanup old docker images
Fixes: OS#3144
Change-Id: I77fe38775b3f6055691bbf654de4019916b75fd7
2018-04-10 14:00:24 +02:00
Neels Hofmeyr e12ebb99e4 osmo-clean-workspace.sh: make more robust against broken git clones
Change-Id: Ifa70fd75468b3e21b5c9327ea28bc7a4c8cb549d
2018-04-09 14:50:37 +02:00
Neels Hofmeyr 91404470d6 osmo-clean-workspace.sh: cosmetic: no need to clean -e deps
git clean always excludes git clone subdirs; furthermore, even if I supply a
dir as -e, the contents of that dir still get cleaned out. So it is useless to
pass -e on the commandline. Drop it.

Change-Id: I2b59cc9c9adf88a2663469b22cfeffbd66b5bf2e
2018-04-09 14:50:37 +02:00
Alexander Couzens a73b13b80f jenkins: add job osmo-gsm-tester_gerrit
The job verifies the gerrit patchset.

Change-Id: If661675528059bc8a95d39a6489a5a9381f52677
2018-04-06 06:49:52 +00:00
Alexander Couzens 2f71cccf4f jenkins: add osmo-gsm-tester_run-{prod,rnd}
Both jobs doing the actual test run on the prod or rnd tester.

Change-Id: Ic1c4babc547f48402b0bcfaf38e2734e87e565f0
2018-04-06 06:49:31 +00:00
Alexander Couzens be32123023 jenkins: add job osmo-gsm-tester_build-trigger-all
osmo-gsm-tester_build-trigger-all triggers a new build of all
osmo-gsm-tester build jobs.

Change-Id: I8dcf2a6fa2991cb73b4807f8a10d251f3dca77dd
2018-04-06 06:49:08 +00:00
Alexander Couzens 742bcf74da jenkins: add osmo-gsm-tester-build jobs
The build jobs building all osmocom components which will be used by the
osmo-gsm-tester. A .tgz archive will be used as artefact which is copied
later by the osmo-gsm-tester test run.

Change-Id: Ic49c94e9e6639e43f6ae14b868bc826af3ce2085
2018-04-06 06:48:52 +00:00
Alexander Couzens fa9f2a145f ansible jenkins-slave: only setup ttcn3_slave on debian stretch
Change-Id: Iaf043008890da94098986468e1fd3d9578810206
2018-04-05 19:58:51 +00:00
Alexander Couzens 8490e65155 ansible: install eclipse-titan
Change-Id: I354271b7c573484b7f538a5a4bb29753a950d5f9
2018-04-05 19:58:51 +00:00
Alexander Couzens 7a148bff15 jobs/update-osmo*: add new nodes to the update jobs
Change-Id: Ib103b3343d582f7a78f0c4cec00c94078a078584
2018-04-05 19:58:51 +00:00
Alexander Couzens 4f9a7bef5c ansible: hosts: add host2-deb8build-ansible host2-deb9build-ansible
Change-Id: If0a21f24483b2c1c6ea56e366c5858eee50f17e1
2018-04-05 19:58:51 +00:00
Alexander Couzens 0acdcdc220 ansible: create a new group coverity-slaves to choose the target of coverity
Change-Id: I8b09ca50db938c5c7087a74e5d2575412a916ff6
2018-04-05 19:58:51 +00:00
Alexander Couzens cb2c930723 ansible: hosts: use inventory with ansible_host to have more readable ansible output
As long they don't have a dns entry, use the ansible_host variable

Change-Id: I0888e9b66cd1077dcdada97fb5ee2d56def516e3
2018-04-05 19:58:51 +00:00