https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API
Python API wrappers
JenkinsAPI and Python-Jenkins are object-oriented python wrappers for the Python REST API which aims to provide a more conventionally pythonic way of controlling a Jenkins server. It provides a higher-level API containing a number of convenience functions. Services offered currently include:
- Query the test-results of a completed build
- Get objects representing the latest builds of a job
- Search for artifacts by simple criteria
- Block until jobs are complete
- Install artifacts to custom-specified directory structures
- username/password auth support for jenkins instances with auth turned on
- Ability to search for builds by subversion revision
- Ability to add/remove/query jenkins slaves