Python wrapper around the Jenkins JSON API
Project description
Python wrapper around the Jenkins JSON API
Free software: MIT license
Documentation: http://pyjenkins.rtfd.org.
Features
Query Jenkins jobs and builds, and trigger a build.
Installation
pip install pyjenkins
Usage
>>> from pyjenkins import Jenkins >>> jenkins = Jenkins("http://jenkins.example.com/", 'username', 'password') >>> job = jenkins.get_job_by_name('my-job') >>> build = job.build('auth-token') >>> build.started False ... >>> build.refresh() >>> build.started True >>> build.complete False >>> build.estimated_duration 60234 ... >>> build.complete True >>> build.successful True
History
0.1.0 (2013-08-11)
First release on PyPI.
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
pyjenkins-0.1.0.tar.gz
(5.9 kB
view hashes)