Define Jenkins jobs from repository
Project description
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.
Setup
On your Jenkins executor, pip3 install jenkins-yml and then use jenkins-yml-runner as shell command.
jenkins.yml format
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:
JOB_NAME=app-test jenkins-yml-runner
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jenkins-yml-2.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for jenkins_yml-2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa0d9a50b9790c9ec8d960bc608b0c190d3b9190b448265fce163191a966a751 |
|
MD5 | c11621462328744b9074608ab234d0f5 |
|
BLAKE2b-256 | 37251762a5102a18c1e111e4759abf61d5bcd867996ab30eba1035232b698fa7 |