Define Jenkins jobs from repository
Define jobs from project
Render Jenkins job and execute comment from jenkins.yml. These two steps are completely independant.
jenkins_yml provide a python API to render a Jenkins job XML config from a YAML payload. It does not manage Jenkins I/O to effectively create the job.
Finally, jenkins_yml provide a simple CLI script to executes de tests commands from jenkins.yml.
On your Jenkins executor, pip3 install jenkins-yml and then use jenkins-yml-runner as shell command.
Put a jenkins.yml file at the root of the project. This file contains a mapping of JOB_NAME to scripts. For example:
app-lint: | flake8 app/ app-tests: axis: TOXENV: [py27, py34, py35] script: | tox -r app-doc: script: | tox -e sphinx -r
To test a job, simply run:
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size jenkins_yml-2.4-py3-none-any.whl (8.6 kB)||File type Wheel||Python version 3.5||Upload date||Hashes View hashes|
|Filename, size jenkins-yml-2.4.tar.gz (6.1 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for jenkins_yml-2.4-py3-none-any.whl