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 | A patched version of JJB is currently required with this repository, it |
7 | can be installed directly from github : | |
8 | ||
9 | $ virtualenv -p python2 .venv | |
10 | $ . .venv/bin/activate | |
11 | $ pip install git+git://github.com/mjeanson/jenkins-job-builder | |
12 | ||
13 | ||
8a67d490 MJ |
14 | ## Example Usage |
15 | ||
16 | Generate XML files for Jenkins jobs from YAML files: | |
17 | ||
18 | $ jenkins-jobs test jobs/ -o output/ | |
19 | ||
20 | Update Jenkins jobs which name starts with "babeltrace": | |
21 | ||
22 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/ babeltrace* | |
c447539a MJ |
23 | |
24 | ||
25 | ## Updating kernel and modules jobs | |
26 | ||
27 | # Delete current RC jobs | |
28 | $ jenkins-jobs --conf etc/jenkins_jobs.ini delete --path jobs/lttng-modules.yaml:jobs/kernel.yaml \*rc\*_build | |
29 | ||
30 | # Update kernel versions | |
94316882 | 31 | $ automation/kernel-seed.py > jobs/inc/kernel-versions.yaml.inc |
c447539a MJ |
32 | |
33 | # Update jobs | |
34 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/lttng-modules.yaml:jobs/kernel.yaml |