Skip to main content

library for interacting with jenkins

Project description


Jenkins-webapi is a library for programatically accessing Jenkins'
remote web API_. It has the following advantages over other similar

* Supports Python versions 2.6 to 3.3.
* Has a comprehensive test suite.
* A consice and intuitive API.

This is a work in progress.


.. code-block:: python

from jenkins import Jenkins, JenkinsError

j = Jenkins('http://server:port', 'user1', 'pass1')

for job in


configxml = job.config # fetch current config.xml
job.config = newconfigxml # reconfigure job

info = # fetch job info

j.job_create('job-name', configxml)
job = j.job('job-name')
job.exists() == j.job_exists('job-name')
job.config == j.job_config('job-name') == j.job_info('job-name')

j.copy('job-name', 'job-new-name')'job-name')'job-name', {'option':'value'}, 'token')

Similar projects

* python-jenkins_
* autojenkins_
* jenkinsapi_


Jenkins-webapi is released under the terms of the `New BSD License`_.

.. _API:

.. _jenkinsapi:
.. _python-jenkins:
.. _autojenkins:

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page