This plugin adds Python support to Jenkins with some useful builders (Python builder, virtualenv builder, tox builder...) and the ability to use a Python axis in multi-configuration projects (for testing on multiple versions of Python).
To configure Python installations, step in Manage Jenkins > Configure System. Then look for the Python section.
To configure a new Python installation click on Add Python, then fill the following fields:
A good practice is to install raw Pythons and then use the Virtualenv Builder to setup your execution environment.
Five builders dedicated to Python:
One publisher dedicated to Python:
Have you configured some Python installations in the Python section of the Manage Jenkins > Configure System page?
See this blog post.
If you want to run ShiningPanda plugin tests, ensure that you're on UNIX and that following environment variables are not set: PYTHONHOME, VIRTUAL_ENV and JYTHON_HOME.
You'll also need some Python installations:
To declare them, create a new property file by copying the template (only if template's configuration does not match your environment):
Then edit test.properties and modify the following entries:
You can also provide these values via command line:
To run all the tests:
To run a test:
And to debug one (with Eclipse for instance):
For those developing on Eclipse, its test runner is not compatible with Jenkins's base test case. You'll need to run tests via command line.
And if you just want to check that everything is working for the HEAD, just have a look on our continuous integration server.
Skip to end of metadata Go to start of metadata