Commit | Line | Data |
---|---|---|
8a67d490 MJ |
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 | ||
e7678071 MJ |
6 | $ virtualenv -p python2 .venv |
7 | $ . .venv/bin/activate | |
95075d30 | 8 | $ pip install jenkins-job-builder |
e7678071 MJ |
9 | |
10 | ||
8a67d490 MJ |
11 | ## Example Usage |
12 | ||
13 | Generate XML files for Jenkins jobs from YAML files: | |
14 | ||
15 | $ jenkins-jobs test jobs/ -o output/ | |
16 | ||
17 | Update Jenkins jobs which name starts with "babeltrace": | |
18 | ||
19 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/ babeltrace* | |
c447539a MJ |
20 | |
21 | ||
22 | ## Updating kernel and modules jobs | |
23 | ||
24 | # Delete current RC jobs | |
25 | $ jenkins-jobs --conf etc/jenkins_jobs.ini delete --path jobs/lttng-modules.yaml:jobs/kernel.yaml \*rc\*_build | |
26 | ||
27 | # Update kernel versions | |
94316882 | 28 | $ automation/kernel-seed.py > jobs/inc/kernel-versions.yaml.inc |
c447539a MJ |
29 | |
30 | # Update jobs | |
31 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/lttng-modules.yaml:jobs/kernel.yaml |