Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Python wrapper around the Jenkins JSON API

Project description

===============================
PyJenkins
===============================

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.2 (2013-10-01)
+++++

* Build.get_build() now accepts a job url and optional auth kwarg
instead of a Job instance.
* Adds unit tests.



0.1.1 (2013-09-28)
++++++++++++++++++

* Bugfix for url transformation to API urls.
* Bugfix for some Build status information always returning False
* Python3 support
* Adds .get_job() to JobSummary
* Adds .get_build() to BuildSummary

0.1.0 (2013-09-27)
++++++++++++++++++

* First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyjenkins-0.1.2.tar.gz (6.2 kB) Copy SHA256 hash SHA256 Source None Oct 1, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page