The question is quite old but probably somebody will use my solution.I copied everything that gave me echo $PATH. Then I opened Jenkin's configuration and found "Global properties".I added PATH and as a value I added value from terminal.
echo $PATH