PowerShell script returning 'Robot does not exist'

We have a Jenkins pipeline that we are trying to use to, among other things, pack and deploy a workflow checked into our GitHub. The powershell script contains only:
& “C:\Program Files (x86)\UiPath\Studio\UiRobot.exe” pack “$env:WORKSPACE\project.json” -o

The only indication that this isn’t working is the following console output
Robot does not exist.

If I RDP into the Jenkins server and run the above command in powershell, it succeeds, but when running in Jenkins, that’s the output we get.

Coincidentally, the same thing happens when we use the UiPath Jenkins plugin.

Any help would be greatly appreciated!

I actually got this solved. Making the call from Jenkins requires -pack instead of just pack. I think it’s a command line vs. Desktop app issue, but I’m not totally certain about this. So, the pack.ps1 file has just this line:

& "C:\Program Files (x86)\UiPath\Studio\UiRobot.exe" -pack "$env:WORKSPACE\project.json" --output "$env:JENKINS_HOME\jobs\$env:JOB_NAME\builds\$env:BUILD_NUMBER"

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.