https://github.com/lttng/lttng-ci
The LTTng CI infrastructure configuration
https://github.com/lttng/lttng-ci
ci jenkins lttng
Last synced: 3 days ago
JSON representation
The LTTng CI infrastructure configuration
- Host: GitHub
- URL: https://github.com/lttng/lttng-ci
- Owner: lttng
- License: gpl-2.0
- Created: 2015-09-04T13:47:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T17:46:16.000Z (almost 2 years ago)
- Last Synced: 2023-10-10T23:31:22.296Z (almost 2 years ago)
- Topics: ci, jenkins, lttng
- Language: Shell
- Homepage: https://ci.lttng.org/
- Size: 1.83 MB
- Stars: 12
- Watchers: 8
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LTTng configuration for Jenkins
This repository holds the configuration of the LTTng Jenkins jobs. It is
meant to be used with Jenkins Job Builder from the OpenStack Foundation.The dependencies can be installed in a dedicated Python virtual
environment using [Poetry](https://python-poetry.org/):$ poetry install
You can then run commands from the virtual environments by prepending
`poetry run` to them:$ poetry run jenkins-jobs --version
Jenkins Job Builder version: 6.4.2or by spawning a shell:
$ poetry shell
Spawning shell within /home/user/.cache/pypoetry/virtualenvs/lttng-ci-qYTnEJGo-py3.12
(lttng-ci-py3.12) $ jenkins-jobs --version
Jenkins Job Builder version: 6.4.2Install [pre-commit](https://pre-commit.com) hooks with:
$ pre-commit install
## Example Usage
Generate XML files for Jenkins jobs from YAML files:
$ jenkins-jobs test jobs/ -o output/
Update Jenkins jobs which name starts with "babeltrace":
$ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/ babeltrace*
## Updating kernel and modules jobs
# Delete current RC jobs
$ jenkins-jobs --conf etc/jenkins_jobs.ini delete --path jobs/lttng-modules.yaml:jobs/kernel.yaml \*rc\*_build# Update kernel versions
$ automation/kernel-seed.py > jobs/inc/kernel-versions.yaml.inc# Update jobs
$ jenkins-jobs --conf etc/jenkins_jobs.ini update jobs/lttng-modules.yaml:jobs/kernel.yaml