Python wrapper for the Jenkins CI REST API
Project description
Extensible, user and developer friendly Python interface to the Jenkins CI tool, wrapping the features exposed by the standard REST API using Pythonic objects and functions.
With an intuitive and well thought out interface, PyJen offers anyone familiar with the Python programming language an easy way to manage Jenkins dashboards from a simple command prompt. All core primitives of Jenkins, including views, jobs and builds are easily accessible and can be accessed, analyzed and even modified or created via simple Python commands.
Example: Displaying a list of all jobs on the default view
from pyjen import * jk = jenkins("http://localhost:8080") vw = jk.get_default_view() jobs = vw.get_jobs()
for j in jobs: print j.get_name()
Example: Disable all jobs in a view named “My View”
from pyjen import * jk = jenkins("http://localhost:8080") vw = jk.find_view("My View") vw.disable_all_jobs()
Example: Get all upstream dependencies of a job named “JobA”
from pyjen import * j = job("http://localhost:8080/job/JobA") upstream = j.get_upstream_jobs(True)
for u in upstream: print u.get_name()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pyjen-0.0.1dev-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd06c86fd109d69e3ebf2a509eb0415e29cc21a62caccdcd40a069023172cbb8 |
|
MD5 | d1b0e1b9302fa4abdfac6b6fe9e4beb9 |
|
BLAKE2b-256 | 41fdc2f1d44eefa11e0f2498c9a23c68fdddf76c6e36f6619e0a6b55591aee84 |