Docker Community Forums

Share and learn in the Docker community.

Cannot run program "cmd" (in directory "/var/jenkins_home/workspace/New_Screen")

Hello All

I using Jenkin_Docker run Testcase , but not run CMD

  • I run CMD outside Docker ( OK )
  • I run CMD inside Docker ( Not work )

Anyone know to help me



I was having the same problem until I realized my simple mistake. My jenkins instance is running on a linux machine, so therfore cmd does not exist as that is windows specific.

Under build steps, instead of selecting “Execute Windows Batch Command” select “Execute Shell”!

Hope that helps.