python - I can not install packages with PIP from Jenkins and Virtualenv -


i'm trying execute script jenkins:

#!/bin/sh source /home/user/venv/venv3/bin/activate   cd /home/user/project/ pip install -r requeriments.txt      python manage.py migrate                python manage.py collectstatic --noinput 

but keep having issues installing package pip:

error: not create '/home/user/venv/venv3/lib/python3.4/site-packages/markdown': permission denied 

i created virtualenv user (not sudo) , python3.

jenkins runs "jenkins" user. user doesn't have write access user's directories. you'd have create virtualenv , project directory in jenkins' own home dir (/var/lib/jenkins).

to debug it, run script hand jenkins user. not within jenkins, on command line after doing sudo su jenkins. you'll see same error.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -