| 1 | # LTTng configuration for Jenkins |
| 2 | |
| 3 | This repository holds the configuration of the LTTng Jenkins jobs. It is |
| 4 | meant to be used with Jenkins Job Builder from the OpenStack Foundation. |
| 5 | |
| 6 | It can be installed with: |
| 7 | |
| 8 | $ virtualenv -p python3 .venv |
| 9 | $ . .venv/bin/activate |
| 10 | $ pip install jenkins-job-builder |
| 11 | |
| 12 | |
| 13 | ## Example Usage |
| 14 | |
| 15 | Generate XML files for Jenkins jobs from YAML files: |
| 16 | |
| 17 | $ jenkins-jobs test jobs/ -o output/ |
| 18 | |
| 19 | Update Jenkins jobs which name starts with "babeltrace": |
| 20 | |
| 21 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/ babeltrace* |
| 22 | |
| 23 | |
| 24 | ## Updating kernel and modules jobs |
| 25 | |
| 26 | # Delete current RC jobs |
| 27 | $ jenkins-jobs --conf etc/jenkins_jobs.ini delete --path jobs/lttng-modules.yaml:jobs/kernel.yaml \*rc\*_build |
| 28 | |
| 29 | # Update kernel versions |
| 30 | $ automation/kernel-seed.py > jobs/inc/kernel-versions.yaml.inc |
| 31 | |
| 32 | # Update jobs |
| 33 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/lttng-modules.yaml:jobs/kernel.yaml |