Skip to main content

Running a Python Jenkins Job

If you chose our Python Git Project, you will have to specify a build step that runs the python test runner.

warning

Before you begin, make sure that Python is installed on the machine that Jenkins runs on and that Python executable was added as Environment Variable. Make sure to also install Appium dependencies by running the command

pip install Appium-Python-Client

In the job configuration screen, scroll down to Build.

Click on Add build step and choose Execute Batch Command.

tip

Depending on the environment that Jenkins operates on (Windows or UNIX), choose either Execute Windows Batch Command or Execute Shell.


Add the command:

python -m unittest test_runner.py


Scroll all the way down and click Save or Apply.

You are all set! Go to the project homepage and click on Build with Parameters and then click on Build.