You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using StartProcess returns "An error occurred when executing task 'taskName'.
Error: One or more errors occurred.
The system cannot find the file specified"
I was able to get this figured out - I just pushed the npm into the arguments appended. It was able to trigger off the step I was requesting.
Now the code looks like this for those interested:
var code = StartProcess("powershell",
new ProcessSettings
{
Arguments = new ProcessArgumentBuilder()
.Append("npm")
.Append("run")
.Append("build-all-prod"),
});
What You Are Seeing?
Using StartProcess returns "An error occurred when executing task 'taskName'.
Error: One or more errors occurred.
The system cannot find the file specified"
StartProcess("//ComputerName/SomeFolder/Some.exe")
This same error appears when using the Powershell addin that uses a script file that invokes Start-Process.
What is Expected?
The process should be started. As it works outside of cake just using straight powershell.
What version of Cake are you using?
26.1.0
Are you running on a 32 or 64 bit system?
64
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
Not yet, just local testing
How Did You Get This To Happen? (Steps to Reproduce)
Output Log
GIST LINK - Please create a gist and link to that gist here
OR
The text was updated successfully, but these errors were encountered: