Execute Python Files in Build

Hi Guys I am a beginner in Jenkins,
I am facing issue with executing python file in the build section in a freestyle project. However it didn’t worked. Can anyone help answer? Thanks!
//
cd E:\projects\devopsdemo1
python E:\projects\devopsdemo1\demo.py
//
My Code


Build Fail Output

Thanks !

so if you’re just starting out, I highly recommend using pipelines instead of freestyle, it’ll give you a lot more control.

Secondly, it says it can’t run 'cmd" in $linuxpath

So it seems to me your trying to issue windows commands on a linux build agent.

Thanks so much Appreciated!