Simple python job on Jenkins

In this tutorial i show, how you as a tester can create a very basic python code analysis and documentation job in your build server.

Preparation

Install needed python modules

Install needed Jenkins plugins

  • HTML Publisher Plugin
  • Violations

Create a Free Style job

Create a new job with your requirements (e.g. Project name, Source-Code Management, etc.). Now insert commands “Build > Execute Shell”.

Add the Post-Build-Action – Report Violations and Publish HTML reports. On violations insert the pep8 (pep8_report.txt) and pylint (pylint_report.txt) values. On Publish HTML reports add the folder API.

After running the build, the screen should look like this:

Jenkins Python Report

MacPorts Basics

Update MacPorts

Search port(s)
Simple search for ports

Simple search for ports by line

Advanced search for ports (start with python)

Install Port(s)

Clean port if install fails

Uninstall port(s)

List installed ports

Update Port(s)

Check for updates

Update outdated port(s)

Update specific port