Can't start job from Jenkins

I can very easily start a job using CLI with the following command UiRobot.exe execute -p ProcessName

Whenever I run this from a CI/CD tool like Jenkins I get this error: Cannot find a process named ‘ProcessName’

The same exact command works from the terminal or from a Python script.
Does UiPath block the use of Jenkins?

1 Like

Hey @Gabriel_Wisniewski

When you say Jenkins, is it from the same machine ?

Please explain more and show some details.

Thanks
#nK

In that situation, yes. From the same machine as the Jenkins host. Is it a cause of problems?

1 Like

Yep, most probably.

I’m not a jenkins guy btw. But based on my understanding, Jenkins host is itself an automation environment where the cmd ran on machine will point to the machine itself.

Whereas the jenkins is isolated, Please correct me if I’m wrong.

Thanks
#nK

1 Like

When I finish setting up the other Jenkins agents I’ll test this again and will leave a comment here. Thanks for the tip.

I have setup a new agent and installed UiPath on it. Still no success.

When I execute directly from the virtual machine on the terminal it works. UiRobot.exe execute -p teste_run_with_message_box.
The same command when ran from Jenkins on the virtual machine returns the message

Cannot find a process named ‘teste_run_with_message_box’

I tried running the nupkg that gets installed in the packages directory. Same situation. Runs nicely when started from CLI, but when I started it from Jenkins I got this different message: “A local license is required.”

When running directly from CMD on the agent machine:

When running from Jenkins job:

Started by user Gabriel Wisniewski

Running as SYSTEM

Building remotely on JenkinsMachine_1 in workspace C:\tools\jenkins\workspace\run_uipath_job2

[run_uipath_job2] $ cmd /c call C:\Windows\TEMP\jenkins8826733870916820162.bat



C:\tools\jenkins\workspace\run_uipath_job2>C:\Users\User\AppData\Local\Programs\UiPath\Studio\UiRobot.exe execute --file "C:\Users\User\.nuget\packages\teste_run_with_message_box\1.0.1\teste_run_with_message_box.1.0.1.nupkg" 

A local license is required.



C:\tools\jenkins\workspace\run_uipath_job2>exit -1 

Build step 'Execute Windows batch command' marked build as failure

Finished: FAILURE```
1 Like

Interesting, local license required is hinting something on the license part as well.

May be we need to connect once for checking.