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 | ||
20714413 | 6 | It can be installed with: |
d2e747f2 | 7 | |
20714413 | 8 | $ virtualenv -p python3 .venv |
e7678071 | 9 | $ . .venv/bin/activate |
20714413 | 10 | $ pip install jenkins-job-builder |
e7678071 MJ |
11 | |
12 | ||
8a67d490 MJ |
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* | |
c447539a MJ |
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 | |
94316882 | 30 | $ automation/kernel-seed.py > jobs/inc/kernel-versions.yaml.inc |
c447539a MJ |
31 | |
32 | # Update jobs | |
33 | $ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/lttng-modules.yaml:jobs/kernel.yaml |