I am configuring a jenkins project and in build environment step; I have below commands to execute from shell:
cd /Users/admin/jenkins
pip install --upgrade pip
pip install -r requirements.txt --user
python ./script.py
But it's failing with
pip: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Locally I have tested script.py and it runs fine, perhaps pip and required modules are installed. But running into issues when setting up same as jenkins job to automate the script. Any alternates/suggestions for the pip install cmd ?
echo $PATHin jenkins script, runbasename $(command -v pip)and check whether the last directory is included inPATHon jenkins run.