Jenkins(Linux) UiPath plugin ...cannot find Powershell.exe

Trying to setup up a CI/CD pipeline in Jenkins(running on Linux) for UiPath build/deploy.

Installed UiPath and Powershell plugins in Jenkins.

But, UiPath Pack cannot run Powershell.exe.

Has anyone got the UiPath/Powershell plugin to work on Jenkins hosted on Linux?

Thanks for your help.

log extract below…

[Pipeline] step
expected plugin jar path is : /var/lib/jenkins/plugins/uipath-automation-package/WEB-INF/lib/uipath-automation-package.jar
extracting powershell modules to temp folder
extracted powershell modules to temp folder
[workspace] $ powershell.exe -NonInteractive -ExecutionPolicy ByPass “& ‘/tmp/jenkins6106868726416481674.ps1’”
[Pipeline] }
[Pipeline] End of Pipeline
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program “powershell.exe” (in directory “/var/lib/jenkins/jobs/Project/workspace”): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.(Proc.java:249)
at hudson.Proc$LocalProc.(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:937)
at hudson.Launcher$ProcStarter.start(Launcher.java:455)
at com.uipath.uipathpackage.Utility.execute(Utility.java:136)
at com.uipath.uipathpackage.UiPathPack.perform(UiPathPack.java:83)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

Hi

Any results ? does that mean this plugin can run only in windows node ?

Is any update on above how to publish package to Jenkins using uipath plugin

Hi you need a windows slave on top of the linux . With that , you will be able to use uipath plugin to publish the package