jenkins to point to custom /usr/local path of python

13 views
Skip to first unread message

Turaco mobile

unread,
Mar 8, 2019, 11:11:28 AM3/8/19
to jenkins...@googlegroups.com
Hi, I have installed python 3.6 at /usr/local/ on CentOS7. Python script is build script and able to run succesfully on teminal but not Jenkins.
How/where to specify in jenkins to execute python3.6 script.
In configure Job Under Build Execute shell it's specified as 
python3.6 /root/jenkins/buildscripts/name.py

Output:
No emails were triggered.
$ /bin/sh -xe /tmp/jenkins739502728111804628.sh
+ python3.6 /root/jenkins/buildscripts/name.py
/tmp/jenkins739502728111804628.sh: line 2: python3.6: command not found
Build step 'Execute shell' marked build as failure

Pls let me know.

Ivan Fernandez Calvo

unread,
Mar 9, 2019, 3:30:33 PM3/9/19
to Jenkins Users
You have to add /usr/local/bin or wherever you have the python 3.6 binary to the PATH environment variable of the user you use to connect from Jenkins
Reply all
Reply to author
Forward
0 new messages