Python works fine on command prompt but failed to run from Jenkins and gives error
'python' is not recognized as an internal or external command, operable program or batch file.
I had this issue in WINDOWS 10:
To fix that you may try what worked for me:
first you have to add the parent directory into the windows environment path: from windows start menu search for 'edit the system environment variables' -> 'environment Variables' -> double check the Path -> enter to parent directory of python installation
jenkins - > manage jenkins -> Configure System -> Environment variables -> ADD: Name: path Value: all your parent folders in 1. above (that can be extracted also using the batch command "echo %path%" - copy and past)