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
python包在这https://pypi.python.org/pypi/python-jenkins/0.4.3
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐