Jenkins and Python

This site is the new docs site currently being tested. For the actual docs in use please go to https://www.jenkins.io/doc.

Unlike compiled languages, Python doesn’t need a "build" per se. Python projects can still benefit greatly from using Jenkins for continuous integration and delivery.

In the Python ecosystem there are tools which can be integrated into Jenkins for testing/reporting such as:

  • nose2 and pytest for executing unit tests and generating JUnit-compatible XML test reports and Cobertura-compatible code coverage reports.

jenkins chart nosetests
  • pylint for generating code quality reports which can be integrated directly into Jenkins for trending and reporting purposes.

jenkins chart pylint

(images courtesy of Alex Conrad)

Resources

Below are a collection of miscellaneous resources for working with Python on top of Jenkins. If you believe something is missing, please click ("here") or the "Improve this Page" link in the lower right, and submit a pull request!

Using the Jenkins API

Python plugins for Jenkins
Shining Panda plugin

adds various build steps for building Python projects with virtualenv, tox and more

JUnit plugin

publishes XML formatted test reports (generated by tools like nose) for trending and analysis

Warnings Next Generation plugin

collects issues from static analysis tools such as Pylint