commit | e2a198a9fa5d75539dcf03ae49b2b727c14760b3 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Tue Feb 13 15:10:33 2024 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue Feb 13 15:18:09 2024 +0000 |
tree | bbce3fefbda9e6df03bd1634d3bf958ec155e756 | |
parent | d78109c3018fc4faf556bdab3563e87a844fd34a [diff] |
Allow empty variables in JJB JJB by default requires all variables to be present which would make the definition of the jobs very complex and full of unneeded parameters. Force the execution of JJB to set all missing variables as empty. Change-Id: I6864c4697ecc2b301dc7c045d4e5ff0d87c97c46
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/