commit | b4f9cfc5966a5e2c03d9ff22d2a7eef4af79a844 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Wed Apr 03 10:45:19 2024 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Wed Apr 03 14:42:21 2024 +0000 |
tree | bd752abcfd9037be98f8ecb6ee35a867b6e2765e | |
parent | 8d93fc91a12784457eddd22a630763637f9da541 [diff] |
Expose DOCKER_HOST in Gerrit-CI agents Define the DOCKER_HOST environment variable pointing to the Docker service for allowing the builds to instantiate test containers. Remove the use of DOCKER_HOST in the Jenkins pipeline file as the one provided by the plugin should be more than enough. Change-Id: Id5ce6efa81036c9668adb12eda577802b8021f3c
This project uses Jenkins Jobs Builder [1] to generate jobs from yaml descriptor files.
To add new jobs reuse existing templates, defaults etc. as much as possible. E.g. adding a job to build an additional branch of a project may be as easy as adding the name of the branch to an existing project.
To ensure well readable yaml-files, use yamllint [2] to lint the yaml-files. Yamllint can be downloaded using Python Pip:
pip3 install --require-hashes yamllint
To run the linter, execute this command from the project's root directory:
yamllint -c yamllint-config.yaml jenkins/**/*.yaml
Yamllint will not fix detected issues itself.
[1] https://docs.openstack.org/infra/jenkins-job-builder/index.html [2] https://pypi.org/project/yamllint/