Running WSL command under Windows 10 not working

13 views
Skip to first unread message

Noel Llopis

unread,
May 6, 2020, 9:28:07 AM5/6/20
to Jenkins Users
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.

Reply all
Reply to author
Forward
0 new messages