git - Can't run a python file in Jenkins execute shell -



git - Can't run a python file in Jenkins execute shell -

i found problem running python file in jenkins execute shell, run in ubuntu terminal. please tell me problem is? give thanks you!

when seek in execute shell box:

cd /home/anna/workspace/gitinspector/gitinspector

gitinspector --format=html /home/anna/workspace/parser > /home/anna/workspace/report08.html

it tells me gitinspector not found.

when seek in execute shell box:

cd /home/anna/workspace/gitinspector/gitinspector

python gitinspector.py --format=html /home/anna/workspace/parser > /home/anna/workspace/report08.html

it tells me there errors within gitinspector.py file.

thank you!

use absolute path when running python or other programme through jenkins or need set environment variable path. so, can run next command desired result:

<location of python>/python <location of gitinspector>/gitinspector.py --format=html /home/anna/workspace/parser > /home/anna/workspace/report08.html

python git shell jenkins

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -