Running JJB
- Python 3.6 or later
- Needs
tox
installed - Needs Jenkins Job Builder config (jjb-conf.ini):
[job_builder]
ignore_cache=True
keep_descriptions=False
include_path=.:scripts:~/git/
recursive=False
exclude=.*:manual:./development
allow_duplicates=False
[jenkins]
user=jenkinsuser
password=password
url=https://jenkinsci.com
query_plugins_info=False
First setup your python environment:
> cd jobs
> tox --workdir .tox -e py36 -- invoke -l
> tox --workdir .tox -e py36 -- invoke update-jobs --conf jjb-conf.ini
- Create the job yaml in this
jobs/
directory. - Create a sub-directory of the same name as job.
- Create a
Jenkinsfile
and any additional local libraries required for job to run. - Include a readme.md based on
readme-template.md
- Verify job syntax with:
tox --workdir .tox -e py36 -- invoke test-jobs --conf jobs/jjb-conf.ini