How to add a python lib to my build?

Article ID:222825768
1 minute readKnowledge base


I have a pipeline that calls a python script. The python script uses library X to do this. However, X is not installed by default. How do I make it available to my script?


  • CloudBees Jenkins Enterprise


If the source code is available to download you can download it and install it for the current user.

The following examples install the boto3 library for the current user.

Freestyle Project - Shell Step

git clone ''
cd boto3
pip install --user .

Pipeline Project

stage "Install Boto"
git ''
sh 'pip install --user .'