Hello,
I'm trying to get Jenkins running under Windows 10 to run a command under WSL (Windows Subsystem for Linux) but I can't get it to work at all.
Just to simplify it as much as possible, I've set up a build step of "Execute Windows Batch Command" like this:
"C:\Users\User\AppData\Local\Microsoft\WindowsApps\ubuntu.exe" run ls
That should execute WSL with the ls command and return. When I do it from the command line it works fine.
On Jenkins I get the following error:
12:39:21 C:\Program Files (x86)\Jenkins\workspace\WoG2>"C:\Users\User\AppData\Local\Microsoft\WindowsApps\ubuntu.exe" run ls
12:39:21 The system cannot execute the specified program.
Any idea what's going on? I tried changing the Jenkins user to my own to make sure there were no problems there and still get the same problem.
Thanks.