Skip to main content

Python wrapper around the Jenkins JSON API

Project description

Python wrapper around the Jenkins JSON API

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.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.

Source Distribution

pyjenkins-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file pyjenkins-0.1.1.tar.gz.

File metadata

  • Download URL: pyjenkins-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyjenkins-0.1.1.tar.gz
Algorithm Hash digest
SHA256 61f2f788dc11209e93cd171d3ce7f27ff60b552085b9a96d4ff2c1a505656375
MD5 4a03bb8824f0f07a731bec17df4ac981
BLAKE2b-256 b2aedef49f4518c01b3f5e02eb3ae3020a11d0858403060030f6665c2bb5fe18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page